@its-tailtime/fslint
v1.0.5
Published
Provides an opinionated filesystem linter and helpers for implementing filesystem conventions for projects.
Downloads
38
Readme
fslint
Provides an opinionated filesystem linter and helpers for implementing filesystem conventions for projects.
Installation
Run the following command (this will also install dependencies):
pnpm add --save-dev @its-tailtime/fslintThen create a fslint.config.ts (or .js/.cjs/.mjs) file in the root of your project - e.g. to scan for unit test files under ./src:
import { defineConfig } from '@its-tailtime/fslint';
export default defineConfig({
rules: {
unitTests: { include: ['src/**/*'] }
}
});# E.g. to run all configured rules (specified in fslint.config.ts)
pnpm exec fslintYou would normally add this to the "lint" command in your package.json:
"lint": "{...other linting commands...} && fslint"