0.0.10 • Published 2 years 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-devNext, install eslint-plugin-fsd-new:
npm install eslint-plugin-fsd-new --save-devUsage
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 |