eslint-plugin-path-control
v0.0.4
Published
This is a plugin for checking and fixing paths according to the FSD architecture
Downloads
7
Maintainers
Readme
eslint-plugin-path-control
This is a plugin for checking and fixing paths according to the FSD architecture
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-path-control
:
npm install eslint-plugin-path-control --save-dev
Usage
Add path-control
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"path-control"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"path-control/fsd-path": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.