Skip to content

Commit d744ab3

Browse files
committed
feat: Enable no-floating-promise lint
1 parent e688533 commit d744ab3

File tree

18 files changed

+63
-93
lines changed

18 files changed

+63
-93
lines changed

control-plane/.eslintrc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22
"extends": [
33
"plugin:@typescript-eslint/recommended"
44
],
5-
"parser": "@typescript-eslint/parser",
65
"plugins": ["@typescript-eslint"],
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "./tsconfig.json"
9+
},
710
"rules": {
811
"@typescript-eslint/no-unused-vars": 1,
912
"no-console": 1,
10-
"@typescript-eslint/no-explicit-any": 1
13+
"@typescript-eslint/no-explicit-any": 1,
14+
"@typescript-eslint/no-floating-promises": "error"
1115
},
1216
"overrides": [
1317
{
1418
"files": ["**/*.test.ts"],
1519
"rules": {
16-
"@typescript-eslint/no-explicit-any": "off"
20+
"@typescript-eslint/no-explicit-any": "off",
21+
"@typescript-eslint/no-floating-promises": "warn"
1722
}
1823
}
1924
]

0 commit comments

Comments
 (0)