0.1.1 • Published 2 months ago

eslint-plugin-paths-observer v0.1.1

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

eslint-plugin-paths-observer

Plugin for checking not correctly declared paths for imports using Feature Sliced Design methodology (FSD)

Read more about FSD

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-paths-observer:

npm install eslint-plugin-paths-observer --save-dev

Usage

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

{
  "plugins": [
    "paths-observer"
  ]
}

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

{
  "rules": {
    "paths-observer/only-relative-imports-in-layer": [
      "error",
      {
        "alias": "@"
      }
    ],
    "paths-observer/only-public-api-imports": [
      "error",
      {
        "alias": "@",
        "ignoreFilePatterns": []
      }
    ],
    "paths-observer/layer-imports-order": [
      "error",
      {
        "alias": "@",
        "ignoreImportPatterns": []
      }
    ]
  }
}

Supported Rules

  • Fill in provided rules here
0.1.1

2 months ago

0.1.0

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.0

1 year ago

0.0.1

1 year ago