Skip to content

Commit fd2f906

Browse files
authored
TINY-11727: Reenable no-floating-promises rule (#50)
1 parent 7031e1c commit fd2f906

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
## Unreleased
99

1010
### Changed
11+
- Re-enabled `@typescript-eslint/no-floating-promises` rule
1112
- Disabled `@typescript-eslint/require-await`, which caused some builds to fail inconsistently and doesn't seem particularly valuable
1213

1314
## 2.3.1 - 2023-05-21

src/main/ts/configs/Standard.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@ export const base: Linter.Config = {
7070
'@typescript-eslint/switch-exhaustiveness-check': 'error',
7171
'@typescript-eslint/type-annotation-spacing': 'error',
7272
'@typescript-eslint/unified-signatures': 'error',
73+
'@typescript-eslint/no-floating-promises': [
74+
'error',
75+
{
76+
ignoreVoid: false
77+
}
78+
],
7379

7480
// TODO: Enable once we no longer support IE 11
7581
'@typescript-eslint/prefer-includes': 'off',
7682
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
7783

7884
// TODO: Investigate if these rules should be enabled
79-
'@typescript-eslint/no-floating-promises': 'off',
8085
'@typescript-eslint/no-explicit-any': 'off',
8186
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', // Needs StrictNullChecks
8287
'@typescript-eslint/no-unnecessary-type-assertion': 'off', // to be investigated, produces different results on a uncompiled environment
@@ -183,4 +188,4 @@ export const standard: Linter.Config = {
183188
'@tinymce/prefer-mcagar-tiny-assertions': 'off',
184189
'@tinymce/prefer-mcagar-tiny-dom': 'off',
185190
}
186-
};
191+
};

0 commit comments

Comments
 (0)