1 unstable release
0.0.2 | May 2, 2024 |
---|
#8 in #conventions
320KB
288 lines
Contains (Mach-o exe, 715KB) npm/dirslint-darwin-arm64/bin/dirslint
dirslint
The linter for directory structure convention written in Rust
Supporting Features
- Directory & File name Linting 🚀
- Wildcard search with glob expressions 😄
Installation
# npm
npm install -D dirslint
# yarn
yarn add --dev dirslint
Usage
# with npx
npx dirslint --config example.yml
# set dirslint scripts in package.json
yarn dirslint --config example.yml
npm dirslint --config example.yml
Examples
ds:
# Rules under specific directory
src/**/*: ["app", "components", "*.ts" ]
# Example for Fractal Directory Structure
"**/src/**": ["app", "components", "*.ts" ]
# Linting Target
target:
- src/* # All files & directories under the src directory
# Ignore specific folders & files
ignore:
- node_modules
- .env*
- .git*
- .git/**
Dependencies
~2–2.7MB
~58K SLoC