eslint-plugin-fsd-path-checker v0.2.13
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 eslintNext, install eslint-plugin-fsd-path-checker:
npm i -D eslint-plugin-fsd-path-checkerUsage
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": "@"
}
]
}
}3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago