eslint-plugin-ubgbigtv-fsd

0.1.3 • Public • Published

eslint-plugin-ubgbigtv-plugin-fsd-import-checker

plugin for correct imports

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

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

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

Usage

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

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

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

{
    "rules": {
        "fsd-import-checker/rule-name": 2
    }
}

Rules

Name                              Description
import-only-from-public-api rule prohibiting importing from something other than a public api
import-only-from-the-lower-layers a rule that allows importing only from underlying layers
path-checker feature slice relative path checker

/eslint-plugin-ubgbigtv-fsd/

    Package Sidebar

    Install

    npm i eslint-plugin-ubgbigtv-fsd

    Weekly Downloads

    3

    Version

    0.1.3

    License

    ISC

    Unpacked Size

    38.2 kB

    Total Files

    22

    Last publish

    Collaborators

    • mjbaron