eslint-plugin-ban-class

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-ban-class

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

7.29 kB

Total Files

8

Last publish

Collaborators

  • shinspiegel