eslint-plugin-promise
eslint-plugin-promise copied to clipboard
Enforce best practices for JavaScript promises
**What is the purpose of this pull request?** - [x] Bug fix **What changes did you make? (Give an overview)** Permits appropriate computed member expressions such as `Promise['all']` and suitable...
```js Promise['all']; // error Avoid using non-standard 'Promise.undefined' promise/spec-only var method = 'all'; Promise[method]; // error Avoid using non-standard 'Promise.method' promise/spec-only ```
``` x:y error Avoid using non-standard 'Promise.prototype' promise/spec-only ```
**What is the purpose of this pull request?** - [x] Bug fix - [x] Changes an existing rule **What changes did you make? (Give an overview)** - feat(`no-callback-in-promise`): add `timeoutsErr`...
**What is the purpose of this pull request?** - [x] New rule **What changes did you make? (Give an overview)** Adds new rule `prefer-catch` to prefer `catch` over `then(a, b)`...
**What is the purpose of this pull request?** - [x] Changes an existing rule **What changes did you make? (Give an overview)** Added an `allowThenStrict` option which will fail on...
**What is the purpose of this pull request?** - [x] Changes an existing rule **What changes did you make? (Give an overview)** Adds an `exclude` option to `valid-params`. Allows use...
**What is the purpose of this pull request?** - [x] Changes an existing rule **What changes did you make? (Give an overview)** For `no-promise-in-callback`, add an `exemptDeclarations` option to prevent...
**What is the purpose of this pull request?** Fix #488 **What changes did you make? (Give an overview)** 1. Added a `tsconfig.json` as well as a type compiling `declaration.tsconfig.json` 2....
**What is the purpose of this pull request?** - [ ] Documentation update - [ ] Bug fix - [x] New rule - [ ] Changes an existing rule -...