0.0.10 • Published 8 months ago
eslint-plugin-fsd-new v0.0.10
eslint-plugin-fsd-new
plugin for production project
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-new
:
npm install eslint-plugin-fsd-new --save-dev
Usage
Add fsd-new
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fsd-new"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-new/rule-name": 2
}
}
Rules
Name | Description |
---|---|
layer-imports | saf |
path-checker | feature sliced relative path checker |
public-api-imports | descr |