0.0.13 • Published 1 year ago

eslint-plugin-malini4-plugin v0.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago