eslint-plugin-correct-fsd-import-paths
v0.0.8
Published
plugin for checking import paths as commanded by the fsd architecture
Downloads
14
Maintainers
Readme
eslint-plugin-correct-fsd-import-paths
plugin for checking import paths as commanded by the fsd architecture
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-correct-fsd-import-paths
:
npm install eslint-plugin-correct-fsd-import-paths --save-dev
Usage
Add correct-fsd-import-paths
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"correct-fsd-import-paths"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"correct-fsd-import-paths/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.