eslint-plugin-lkx-fsd
v0.2.4
Published
Maintainers
Readme
eslint-plugin-lkx-fsd
new rule
yo eslint:rule Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-lkx-fsd:
npm install eslint-plugin-lkx-fsd --save-devUsage
Add lkx-fsd to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"lkx-fsd"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"lkx-fsd/rule-name": 2
}
}Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 | | :------------------------------------------- | :---------------------------------------------------- | :- | | layer-checker | Проверяет импорт по уровню доступа FSD | | | order-imports | Проверяет порядок импортов | 🔧 | | path-checker | Проверяет относительные пути внутри одного FSD-слайса | 🔧 | | public-import | Проверяет импорт через public API слайса | 🔧 |
