Skip to content
项目

关于

极其快速的目录和文件名检查工具,为项目文件系统带来更清晰的结构。

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+3
1个月
+3

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
logo

ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem

CI Version npm npm License

  • Minimal setup with simple rules managed in one single or multiple .ls-lint.yml files
  • Works for directory and file names - all extensions supported - full unicode support
  • Incredibly fast - lints thousands of files and directories in milliseconds
  • Support for Windows, MacOS and Linux + NPM Package + GitHub Action + Homebrew + Docker
  • Reliable since 2020 - trusted by open source projects from Ansible, Buildkite, ByteDance, Huawei, Philips, Red Hat, Renovate and many more
  • Almost zero third-party dependencies (only go-yaml and doublestar)

Announcements

v2.3.0 is here: https://ls-lint.org/blog/announcements/v2.3.0.html

Documentation

The full documentation can be found at ls-lint.org

Demo

Configuration .ls-lint.yml

ls:
  packages/*/{src,__tests__}:
    .js: kebab-case
    .ts: camelCase | PascalCase
    .d.ts: camelCase
    .spec.ts: camelCase | PascalCase
    .mock.ts: camelCase

  components/*:
    .ts: regex:${0}
    tests:
      .*: exists:0
      .test.ts: regex:${1}

ignore:
  - node_modules

Result

command

Logo

Logo created by Studio Ajot

License

ls-lint is open-source software licensed under the MIT license.

FOSSA Status

探索相关项目

加载中…