npm.io
0.0.9 • Published 3 years ago

eslint-plugin-fsd-arch-validator

Licence
ISC
Version
0.0.9
Deps
2
Size
20 kB
Vulns
0
Weekly
0

eslint-plugin-fsd-arch-validator

Validate whether module imports within your project meet the requirements of FSD architecture

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-arch-validator:

npm install eslint-plugin-fsd-arch-validator --save-dev

Usage

Add fsd-arch-validator to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "fsd-arch-validator"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "fsd-arch-validator/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Keywords