eslint-plugin-fsd-path-checker
v0.2.13
Published
plugin for checking imports from external modules only from the public API. To check if the FSD (Feature-Sliced Design) import is correct.
Downloads
13
Maintainers
Readme
eslint-plugin-fsd-path-checker
plugin for checking imports from external modules only from the public API. To check if the FSD (Feature-Sliced Design) import is correct. Plugin work with any of your alias.
Installation
You'll first need to install ESLint:
npm i -D eslint
Next, install eslint-plugin-fsd-path-checker
:
npm i -D eslint-plugin-fsd-path-checker
Usage
Add fsd-path-checker
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fsd-path-checker"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-path-checker/path-checker": "error"
}
}
If you are use an alias, you may add it:
{
"rules": {
"fsd-path-checker/path-checker": [
"error",
{
"alias": "@"
}
]
}
}