eslint-plugin-fsd-slivki
v0.0.15
Published
ESLint plugin for projects based on FSD architecture principles
Downloads
19
Maintainers
Readme
eslint-plugin-fsd-slivki
ESLint plugin for projects based on FSD architecture principles
Github for docs and contribution - https://github.com/lumpendog/eslint-plugin-fsd-slivki
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-slivki
:
npm install eslint-plugin-fsd-slivki --save-dev
Usage
Add fsd-slivki
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fsd-slivki"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-slivki/rule-name": 2
}
}
Rules
Plugin is in development. Only 2 rules are working currently. No auto-fix available yet.
| Name | Description | | :----------------------------------------------------------- | :---------------------------------------------------------- | | path-check-layers | Importing modules from upper layers is forbidden in FSD | | path-check-public-api | Check for using only public API paths for importing modules | | path-check-relative | Check import paths to be relative inside one slice |