dirslint

Crates.iodirslint
lib.rsdirslint
version0.0.2
sourcesrc
created_at2024-05-02 17:36:14.479505
updated_at2024-05-02 17:36:14.479505
descriptionDirectory Structure Lint
homepage
repositoryhttps://github.com/jjm2317/dirslint
max_upload_size
id1227933
size733,705
Jiman Jeong (jjm2317)

documentation

README

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/**
Commit count: 26

cargo fmt