0.0.12 • Published 2 years ago

eslint-plugin-denchik-fsd v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-denchik

eslint plugin eslint-plugin-denchik-fsd for check fsd frontend, содержит 3 правила: 1) path-checker - запрещает использовать абсолютные импорты в рамках одного модуля 2) layer-imports - проверяет корректность использования слоев с точки зрения FSD (например widgets нельзя использовать в features и entities) 3) public-api-imports - разрешает импорт из других модулей только из public api. Имеет auto fix

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-denchik:

npm install eslint-plugin-denchik --save-dev

Usage

Add denchik to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "denchik"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "denchik/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

0.0.12

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago