1.0.10 • Published 5 years ago
eslint-plugin-ban-package-import v1.0.10
eslint-plugin-ban-package-import
Bans package import. Useful when one wants to remove a deprecated package from project and wants to make sure that it will not be used in a new code.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-ban-package-import:
$ npm install eslint-plugin-ban-package-import --save-devUsage
Add ban-package-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["ban-package-import"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ban-package-import/ban-package-import": [
2,
{
"packages": ["package-to-ban"]
}
]
}
}Supported Rules
- ban-package-import