0.0.12 • Published 1 year ago

eslint-plugin-fsd-import v0.0.12

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

eslint-plugin-fsd-import

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:

npm install eslint-plugin-fsd-import --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.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.1

1 year ago

0.0.0

1 year ago