Skip to content

Commit 39f3f06

Browse files
committed
Re-enable the @typescript-eslint/no-floating-promises rule
1 parent 38b631d commit 39f3f06

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,12 @@ module.exports = {
279279
allowWithDecorator: true
280280
}
281281
],
282-
283-
// Disabled because of https://github.com/typescript-eslint/typescript-eslint/issues/647
284-
// '@typescript-eslint/no-floating-promises': 'error',
285-
282+
'@typescript-eslint/no-floating-promises': [
283+
'error',
284+
{
285+
ignoreIIFE: true
286+
}
287+
],
286288
'@typescript-eslint/no-for-in-array': 'error',
287289
'@typescript-eslint/no-inferrable-types': 'error',
288290
'@typescript-eslint/no-misused-new': 'error',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
"simple"
4545
],
4646
"devDependencies": {
47-
"@typescript-eslint/eslint-plugin": "^2.28.0",
48-
"@typescript-eslint/parser": "^2.28.0",
47+
"@typescript-eslint/eslint-plugin": "^2.29.0",
48+
"@typescript-eslint/parser": "^2.29.0",
4949
"ava": "^2.4.0",
5050
"eslint": "^6.8.0",
5151
"temp-write": "^4.0.0",
5252
"typescript": "^3.8.3"
5353
},
5454
"peerDependencies": {
55-
"@typescript-eslint/eslint-plugin": ">=2.28.0",
55+
"@typescript-eslint/eslint-plugin": ">=2.29.0",
5656
"eslint": ">=6.6.0",
5757
"typescript": ">=3.5.3"
5858
}

0 commit comments

Comments
 (0)