Crates.io | dirslint |
lib.rs | dirslint |
version | 0.0.2 |
source | src |
created_at | 2024-05-02 17:36:14.479505 |
updated_at | 2024-05-02 17:36:14.479505 |
description | Directory Structure Lint |
homepage | |
repository | https://github.com/jjm2317/dirslint |
max_upload_size | |
id | 1227933 |
size | 733,705 |
The linter for directory structure convention written in Rust
# npm
npm install -D dirslint
# yarn
yarn add --dev dirslint
# with npx
npx dirslint --config example.yml
# set dirslint scripts in package.json
yarn dirslint --config example.yml
npm dirslint --config example.yml
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/**