0.0.5 • Published 7 months ago

eslint-plugin-imports-fsd v0.0.5

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

eslint-plugin-imports-fsd

plugin for tracking imports in the application

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-imports-fsd:

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

Usage

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

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

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

{
    "rules": {
        "imports-fsd/path-checker": ["error", { alias: "@" }],
        "imports-fsd/public-api-imports": ["error", { alias: "@" }],
        "imports-fsd/layer-imports": [
        "error",
        {
            alias: "@",
            ignoreImportPatterns: ["**/StoreProvider", "**/testing"],
        },
        ],
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

0.0.3

7 months ago

0.0.2

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.0

7 months ago

0.0.1

7 months ago