Skip to content

Commit

Permalink
lint: warn promise-function-async
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 6, 2025
1 parent 103e0bc commit d5baaf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ module.exports = {

rules: {
'@typescript-eslint/no-unused-expressions': 'off', // we use `cond || Fail`
'@typescript-eslint/promise-function-async': [
// so throw in promise-returning function still returns a promise
'warn',
{ checkArrowFunctions: false, checkFunctionExpressions: false },
],
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-unnecessary-type-constraint': 'warn',
'@typescript-eslint/no-unsafe-function-type': 'warn',
Expand Down

0 comments on commit d5baaf8

Please sign in to comment.