eslint-plugin-no-restricted-imports
v0.0.0
Published
no-restricted-imports
Downloads
26,968
Maintainers
Readme
eslint-plugin-no-restricted-imports
no-restricted-imports
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-no-restricted-imports
:
$ npm install eslint-plugin-no-restricted-imports --save-dev
Usage
Add no-restricted-imports
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-restricted-imports"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-restricted-imports/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here