0.1.9 • Published 2 years ago

eslint-plugin-fsd-pathcheker v0.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.10

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

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

0.0.0

2 years ago