eslint-plugin-deprecate-import

2.0.0 • Public • Published

eslint-plugin-deprecate-import

npm version build status


An ESLint plugin to deprecate import statements

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-deprecate-import:

$ npm install eslint-plugin-deprecate-import --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-deprecate-import globally.

Usage

Add deprecate-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["deprecate-import"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "deprecate-import/rule-name": 2
  }
}

Supported Rules

  • module: Deprecates npm module imports via regex pattern matching

Package Sidebar

Install

npm i eslint-plugin-deprecate-import

Weekly Downloads

9,910

Version

2.0.0

License

MIT

Unpacked Size

11.6 kB

Total Files

10

Last publish

Collaborators

  • findmypast-tech