0.0.13 • Published 3 months ago

eslint-plugin-malini4-plugin v0.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

eslint-plugin-malini4-path-checker-plugin

ESLint плагин для проектов на основе FSD архитектуры

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

или

yarn add  eslint -D

Next, install eslint-plugin-malini4-path-checker-plugin:

npm install eslint-plugin-malini4-path-checker-plugin --save-dev

или

yarn add eslint-plugin-malini4-path-checker-plugin -D

Usage

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

{
    "plugins": [
        "malini4-path-checker-plugin"
    ]
}

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

{
    "rules": {
        "malini4-path-checker-plugin/path-checker": "error"
    }
}

Rules

path-checker - для проверки относительных путей
в рамках одного слайса все пути должны быть относительными
(начинаться с . или ./ или ../)

Например ../entities/Article
Тут слой это - entities,
слайс это - Article

0.0.12

3 months ago

0.0.13

3 months ago

0.0.10

4 months ago

0.0.11

4 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.5

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago