Skip to content

Commit

Permalink
feat!: disallows awaiting non thenable value
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic committed Aug 10, 2022
1 parent 7c3c83e commit 4d6a0a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'@typescript-eslint/prefer-function-type': 'off', // conflicts with 'etc/prefer-interface'
'@typescript-eslint/explicit-function-return-type': 'off', // allow compiler to derive return type
'@typescript-eslint/no-this-alias': 'off', // allow 'const self = this'
'@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable"
'jsdoc/require-param': 'off', // do not require jsdoc for params
'jsdoc/require-param-type': 'off' // allow compiler to derive param type
}
Expand Down

0 comments on commit 4d6a0a8

Please sign in to comment.