1.0.0 • Published 3 years ago
eslint-plugin-no-default-error v1.0.0
eslint-plugin-no-default-error
The plugin restricts the usage of default (unextended) errors
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-no-default-error
:
npm install eslint-plugin-no-default-error --save-dev
Usage
Add no-default-error
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-default-error"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-default-error/no-default-error": 2
}
}
Supported Rules
no-default-error
1.0.0
3 years ago