1.0.1 • Published 5 years ago

eslint-plugin-umbrella v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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

ruledescription
promise-catchEnforces the use of catch() on promises.
async-decoratorEnsures Decorator class decorate() should have to be async