An extremely fast directory and filename linter - Bring some structure to your project filesystem
- Minimal setup with simple rules managed in one single or multiple
.ls-lint.ymlfiles - 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
- Trusted by Renovate, Terser 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
Logo
Logo created by Studio Ajot
License
ls-lint is open-source software licensed under the MIT license.
