0.1.1 • Published 4 years ago
eslint-plugin-authority-import v0.1.1
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-devNext, install eslint-plugin-authority-import:
npm install eslint-plugin-authority-import --save-devUsage
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