Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-deprecate

AlexMost358.1kMIT0.8.5

Stand With Ukraine

eslint, deprecation, deprecate function

readme

Stand With Ukraine

eslint-plugin-deprecate

NPM version downloads

This plugin helps you to refactor your codebase.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-deprecate:

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

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

Usage

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

{
    "plugins": [
        "deprecate"
    ]
}

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

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

Supported Rules