eslint-plugin-fsd-import-path-checker
v0.2.0
Published
plugin for checking import paths inside Feature Sliced Design Frontend project
Downloads
7
Maintainers
Readme
eslint-plugin-fsd-import-checker
plugin for checking import paths inside Feature Sliced Design Frontend project
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-import-checker
:
npm install eslint-plugin-fsd-import-path-checker --save-dev
Usage
Add fsd-import-checker
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fsd-import-path-checker"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-import-path-checker/path-checker": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.