eslint-plugin-fsd-path-checker-plugin
v0.2.2
Published
Plugin which checks correctness of imports as per Feature Sliced Design
Downloads
6
Maintainers
Readme
eslint-plugin-path-checker-plugin
Plugin which checks correctness of imports as per Feature Sliced Design
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-path-checker-plugin
:
npm install eslint-plugin-path-checker-plugin --save-dev
Usage
Add path-checker-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"path-checker-plugin"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"path-checker-plugin/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.