0.0.8 • Published 1 year ago

eslint-plugin-fsd-helper v0.0.8

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

eslint-plugin-fsd-helper

checks imports for FSD architecture

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-helper:

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

Usage

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

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

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

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

Supported Rules

  • Fill in provided rules here
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

1 year ago

0.0.0

1 year ago