0.1.8 • Published 4 months ago

eslint-plugin-fsd-rules-checker-latest v0.1.8

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

eslint-plugin-fsd-rules-checker

eslint-plugin-fsd-rules-checker

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-rules-checker:

npm install eslint-plugin-fsd-rules-checker --save-dev

Usage

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

{
    "plugins": [
        "fsd-rules-checker"
    ]
}

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

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

Support for path aliases was added in version 0.0.4

{
  "rules": {
    "fsd-rules-checker/rule-name": [
      "error",
      {
        "alias": "yourAlias"
      }
    ]
  }
}

Rules

  • path-checker - Within a single "slice", all paths must be relative paths
  • public-api-imports - Absolute imports, only from public api (index.js) | Test data should be imported from public api publicApi/testing.ts
  • layer-imports - A layer can only import underlying layers into itself (shared, entities, features, widgets, pages, app)
0.1.8

4 months ago

0.1.7

4 months ago

0.1.6

5 months ago

0.1.0

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.1.4

6 months ago

0.0.5

6 months ago

0.1.3

6 months ago

0.0.4

6 months ago

0.0.7

6 months ago

0.1.5

6 months ago

0.0.6

6 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago