Skip to content

shinspiegel/eslint-plugin-ban-class

Repository files navigation

eslint-plugin-ban-class

Ban named specific class

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-ban-class:

npm install eslint-plugin-ban-class --save-dev

Usage

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

Releases

No releases published

Packages

No packages published