Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
mention _.asyncCb as a middle-way solution to @typescript-eslint/no-m…
Browse files Browse the repository at this point in the history
…isused-promises in callbacks
  • Loading branch information
andreineculau committed Feb 26, 2020
1 parent bcf0fd4 commit 5270f90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ module.exports = {
'no-magic-numbers': 'off',
'@typescript-eslint/no-magic-numbers': _basic.rules['no-magic-numbers'],

// use _.asyncCb from lodash-firecloud@^0.5.23 for async callbacks with sync receivers
// see https://github.com/tobiipro/lodash-firecloud/commit/0f8945b78fb26aa066fc529ba89f1e5e55b63ab2
// see https://github.com/typescript-eslint/typescript-eslint/issues/1637
'@typescript-eslint/no-misused-promises': 'error',

'@typescript-eslint/no-var-requires': 'error',
Expand Down

0 comments on commit 5270f90

Please sign in to comment.