eslint-plugin-authority-import
v0.1.1
Published
a plugin for eslint which can limit module/methods be import;
Downloads
2
Maintainers
Readme
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