eslint-plugin-umbrella
v1.0.1
Published
umbrella eslint plugin
Downloads
5
Readme
Installation
You'll first need to install ESLint:
$ npm install eslint --save-dev
Next, install eslint-plugin-umbrella
:
$ npm install --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must
also install eslint-plugin-promise
globally.
Usage
Add promise
to the plugins section of your .eslintrc.json
configuration
file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["umbrella"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"umbrella/promise-catch": "error",
"umbrella/async-decorator": "error"
}
}
Rules
| rule | description |
| -------------------------------------------------------- | -------------------------------------------------------------------------------- |
| promise-catch
| Enforces the use of catch()
on promises. |
| async-decorator
| Ensures Decorator
class decorate()
should have to be async |