0.0.14 • Published 11 months ago

eslint-plugin-fsd-slivki v0.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

eslint-plugin-fsd-slivki

ESLint plugin for projects based on FSD architecture principles

Github for docs and contribution - https://github.com/lumpendog/eslint-plugin-fsd-slivki

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-slivki:

npm install eslint-plugin-fsd-slivki --save-dev

Usage

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

{
    "plugins": [
        "fsd-slivki"
    ]
}

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

{
    "rules": {
        "fsd-slivki/rule-name": 2
    }
}

Rules

Plugin is in development. Only 2 rules are working currently. No auto-fix available yet.

NameDescription
path-check-layersImporting modules from upper layers is forbidden in FSD
path-check-public-apiCheck for using only public API paths for importing modules
path-check-relativeCheck import paths to be relative inside one slice
0.0.13

11 months ago

0.0.14

11 months ago

0.0.10

12 months ago

0.0.11

12 months ago

0.0.12

12 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago