eslint-plugin-feature-sliced-design
v1.10.0
Published
Plugin for feature-sliced designed projects
Downloads
52
Maintainers
Readme
eslint-plugin-feature-sliced-design
Plugin for feature-sliced designed projects
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-feature-sliced-design
:
npm install eslint-plugin-feature-sliced-design --save-dev
Usage
Add feature-sliced-design
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"feature-sliced-design"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"feature-sliced-design/rule-name": 2
}
}
Supported Rules
- relative-path-within-slice: Check whether import path within a slice is relative.
- public-api-slice-import: Check whether import is performed via public API.