0.0.14 • Published 3 years ago

eslint-plugin-import-path-plus v0.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

eslint-plugin-import-path-plus

import path rules

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-import-path-plus:

npm install eslint-plugin-import-path-plus --save-dev

Usage

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

{
  "plugins": ["import-path-plus"]
}

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

{
    "rules": {
        "import-path-plus/no-internal-modules": [
            "error",
            {
                target: "**/.umi/**",
                replace: "umi"
            },
            {
                target: "umi",
                replace: "@/utils/router",
                modules: ["Link", "useHistory"]
            }
        ]
    }
}

Supported Rules

  • no-internal-modules
0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago