Skip to content

Commit

Permalink
feat(eslint-config): enable "no-floating-promises" rule
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
  • Loading branch information
bajtos committed Jun 25, 2019
1 parent 41e7a75 commit 9beb3a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/eslint-config/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ module.exports = {

// Rules mapped from `@loopback/tslint-config/tslint.build.json
'@typescript-eslint/await-thenable': 'error', // tslint:await-promise: [true, 'PromiseLike', 'RequestPromise'],

// See https://github.com/typescript-eslint/typescript-eslint/issues/464
// tslint:no-floating-promises: [true, 'PromiseLike', 'RequestPromise'],
'@typescript-eslint/no-floating-promises': 'error',

'no-void': 'error', // tslint:no-void-expression: [true, 'ignore-arrow-function-shorthand'],
},
Expand Down

0 comments on commit 9beb3a5

Please sign in to comment.