0.0.6 • Published 2 years ago
eslint-plugin-feature-sliced-design-import-checker v0.0.6
eslint-plugin-feature-sliced-design-import-checker
checks imports according fsd methodology
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-feature-sliced-design-import-checker:
npm install eslint-plugin-feature-sliced-design-import-checker --save-devUsage
Add feature-sliced-design-import-checker to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"feature-sliced-design-import-checker"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"feature-sliced-design-import-checker/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.