An extremely fast directory and filename linter
npm install @ls-lint/ls-lint
An extremely fast directory and filename linter - Bring some structure to your project filesystem


!npm
!npm
- 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
- Trusted by Renovate, Terser and many more
- Almost zero third-party dependencies (only go-yaml
and doublestar)
v2.3.0 is here: https://ls-lint.org/blog/announcements/v2.3.0.html
The full documentation can be found at ls-lint.org
- Installation
- The Basics
- The Rules
- Contributions
``yaml
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
``

Logo created by Studio Ajot
ls-lint is open-source software licensed under the MIT license.
