0.0.2 • Published 6 months ago

eslint-plugin-fsd-import-next v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

eslint-plugin-fsd-import-next

Plugin for checking imports path in FSD project.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

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

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

Usage

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

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

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

{
    "rules": {
        "fsd-import/fsd-relative-path": "error",
        "fsd-import/public-api-imports": "error",
        "fsd-import/layer-imports": "error",
    }
}

Supported Rules

Check FSD imports is correct:

0.0.2

6 months ago

0.0.1

6 months ago