# ls-lint

> An extremely fast directory and filename linter

Source: https://talira.ai/catalog/ls-lint-pcv3980p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / linting / file names](https://talira.ai/categories/developer-tools/linting/file-names)
- Platforms: linux, macos, windows, docker[^3][^4]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^3]
- Creator: Lucas Löffel (loeffel-io)

ls-lint checks that file and directory names follow your conventions, from rules in one or more `.ls-lint.yml` files: per directory glob and per extension, names must be kebab-case, camelCase, PascalCase, snake_case, match a regular expression, or exist a given number of times. It handles any extension and full Unicode, lints thousands of files in milliseconds, and has almost no dependencies. It runs on Linux, [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and Windows and installs from npm, [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md), [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) or a GitHub Action.

## Links

- Website: https://ls-lint.org
- GitHub: https://github.com/loeffel-io/ls-lint
- Docs: https://ls-lint.org

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ls-lint>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/ls-lint>[^2]

## Problems it solves

- enforce kebab-case file names across the repo
- someone keeps adding files named MyComponent.JS next to my-component.ts
- lint file and directory naming conventions in CI
- make sure every component folder has a test file
- require snake_case for Ruby files and PascalCase for React components in one repo
- fail the build when a file name doesn't match a pattern
- a fast check of naming rules for a monorepo with thousands of files
- case-only renames break the build on Linux but not on my Mac

## Features

- rules per directory glob and extension
- kebab-case, camelCase, PascalCase, snake_case, screaming snake case
- regex rules
- exists rules (required or forbidden files)
- several .ls-lint.yml files
- Unicode support
- npm package, Homebrew, Docker and GitHub Action

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.91, adoption 0.68, momentum 0.45, community 0.46, backing 0.20, extensibility 0.20.

- last commit 11 days ago
- 46 commits in the last 90 days
- latest release v2.3.2 38 days ago
- 2.4k GitHub stars
- 13 contributors
- created by Lucas Löffel (loeffel-io)

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://github.com/loeffel-io/ls-lint (checked 17 Nov 2026)
[^4]: https://ls-lint.org (checked 17 Nov 2026)
