eslint-plugin-fsd-path-checker

0.2.13 • Public • Published

eslint-plugin-fsd-path-checker

plugin for checking imports from external modules only from the public API. To check if the FSD (Feature-Sliced Design) import is correct. Plugin work with any of your alias.

Installation

You'll first need to install ESLint:

npm i -D eslint

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

npm i -D eslint-plugin-fsd-path-checker

Usage

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

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

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

{
    "rules": {
      "fsd-path-checker/path-checker": "error"
    }
}

If you are use an alias, you may add it:

{
  "rules": {
    "fsd-path-checker/path-checker": [
      "error",
      {
        "alias": "@"
      }
    ]
  }
}

Package Sidebar

Install

npm i eslint-plugin-fsd-path-checker

Weekly Downloads

0

Version

0.2.13

License

ISC

Unpacked Size

21.1 kB

Total Files

17

Last publish

Collaborators

  • igordcat