Skip to content

Commit

Permalink
feat: allow intentionally not awaited promises
Browse files Browse the repository at this point in the history
  • Loading branch information
gjbkz committed Sep 1, 2023
1 parent 0ce216a commit 8f3cee3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,12 @@
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-extra-non-null-assertion": 2,
"@typescript-eslint/no-extraneous-class": 2,
"@typescript-eslint/no-floating-promises": 2,
"@typescript-eslint/no-floating-promises": [
2,
{
"ignoreVoid": true
}
],
"@typescript-eslint/no-for-in-array": 2,
"@typescript-eslint/no-import-type-side-effects": 2,
"@typescript-eslint/no-inferrable-types": 2,
Expand Down
2 changes: 1 addition & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ const config = {
'no-explicit-any': ERROR,
'no-extra-non-null-assertion': ERROR,
'no-extraneous-class': ERROR,
'no-floating-promises': ERROR,
'no-floating-promises': [ERROR, { ignoreVoid: true }],
'no-for-in-array': ERROR,
'no-import-type-side-effects': ERROR,
'no-inferrable-types': ERROR,
Expand Down

0 comments on commit 8f3cee3

Please sign in to comment.