@justindfuller/eslint-plugin-deprecate
v0.0.3
Published
Deprecate Code
Downloads
1
Maintainers
Readme
@JustinDFuller/eslint-plugin-deprecate
Deprecate code.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @justindfuller/eslint-plugin-deprecate
:
$ npm install @JustinDFuller/eslint-plugin-deprecate --save-dev
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
- deprecate/function: Warn about some function usage.
- deprecate/member-expression: Warn about some member expression usages.
- deprecate/import: Warn about some import/require usage.