0.1.1 • Published 4 years ago

eslint-plugin-authority-import v0.1.1

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

eslint-plugin-authority-import

a plugin for eslint which can limit module/methods be import;

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-authority-import:

npm install eslint-plugin-authority-import --save-dev

Usage

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

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

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

{
  "rules": {
    "authority-import/authority-import": 2
  },
  "settings": {
    "authorityImport": [
      // demo
      {
        "module": "./src/components/authority.component.js",
        "authorityList": ["./src/vb.js"]
      }
    ]
  }
}

Supported Rules

  • Fill in provided rules here
0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago