A tool to lint file system structures using regular expressions, enabling enforcement of directory and file naming conventions and project layout rules. Current stable version is 1.2.10, released in early 2023 with ongoing minor updates. It uses a YAML configuration file (lint-fs.yaml) and runs via npx. Differentiates from other linters by focusing on file system structure rather than code content, supporting ECMAScript regex patterns for flexible rules.
npm install lint-fsNo compatibility data collected yet for this library.
Install lint-fs, create a basic YAML config to enforce lowercase directory names in src/, and run the linter.
Rename your config file to lint-fs.yaml or use --config option if supported.
Adjust regex patterns to match the full path (e.g., ^src/[a-z]+$ for directories under src).
Update Node.js to v18.14.2+ and npm to v9.5.0+.
Use child_process.exec('npx lint-fs') if integration is needed.Create a lint-fs.yaml file in your project's root directory with valid rules.
Provide a valid ECMAScript regex string in the pattern field (e.g., '^[a-z]+$').
Use the CLI via npx, not require(). The package is an ES module.
No dependency data recorded yet.