0.2.0 • Published 2 years ago
eslint-plugin-fsd-import-path-checker v0.2.0
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-devNext, install eslint-plugin-fsd-import-checker:
npm install eslint-plugin-fsd-import-path-checker --save-devUsage
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.