0.1.9 • Published 5 months ago

eslint-plugin-fsd-pathcheker v0.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

eslint-plugin-fsd-pathcheker

Plugin for checking imports path in FSD project.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-pathcheker:

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

Usage

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

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

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

{
  "rules": {
    "fsd-pathcheker/path-checker": "error",
    "fsd-pathcheker/public-api-imports": "error",
    "fsd-pathcheker/layer-imports": "error"
  }
}

Rules

Check FSD imports is correct:

Name              Description
path-checkerCheck if path should be relative according to Feature-sliced design methodology.
layer-importsChecking imports from upper layers according to Feature-sliced design methodology.
public-api-importsChecks if absolute path imports from public api
0.1.9

5 months ago

0.1.8

7 months ago

0.1.7

8 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.0.10

9 months ago

0.1.0

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.0.7

9 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.0

12 months ago