1.0.10 • Published 3 years ago

eslint-plugin-ban-package-import v1.0.10

Weekly downloads
247
License
MIT
Repository
github
Last release
3 years ago

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-dev

Next, install eslint-plugin-ban-package-import:

$ npm install eslint-plugin-ban-package-import --save-dev

Usage

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
1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago