ZOYKU火線榜

loeffel-io/ls-lint技術文件

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

多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
極速安裝
go get github.com/loeffel-io/ls-lint

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 created by Studio Ajot

License

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

FOSSA Status

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-09