0.0.10 • Published 1 year ago

eslint-plugin-fsd-path-import v0.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

eslint-plugin-fsd-path-import

plugin for correct fsd imports

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-path-import:

npm install eslint-plugin-fsd-path-import --save-dev

Usage

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

{
    "plugins": [
        "fsd-path-import"
    ]
}

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

{
    "rules": {
      "fsd-path-import/path-checker": ["error", { "alias": "@" }],
      "fsd-path-import/public-api-imports": ["error", { "alias": "@", "testFilesPatterns": [ "**/test.ts" ]  }],
      "fsd-path-import/layer-imports": [
        "error",
        { "alias": "@", "ignoreImportPatterns": ["**/StoreProvider"] }
      ]
    }
}
0.0.10

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.1

2 years ago

0.0.0

2 years ago