0.0.2 • Published 3 years ago
eslint-plugin-ban-class v0.0.2
eslint-plugin-ban-class
Ban named specific class
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-ban-class:
npm install eslint-plugin-ban-class --save-devUsage
Add ban-class to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["ban-class"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ban-class/ban-class": ["error", { "banned": ["Date"] }]
}
}Rules
| Name | Description |
|---|---|
| ban-class | Define classes to be banned from the project |