Skip to content

Commit 3255e25

Browse files
committed
feat: no-floating-promises
closes #546 Signed-off-by: Naseem Ullah <24660299+naseemkullah@users.noreply.github.com>
1 parent 3b9ab6d commit 3255e25

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.eslintrc.json

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"plugin:@typescript-eslint/recommended"
3939
],
4040
"rules": {
41+
"@typescript-eslint/no-floating-promises": "warn",
4142
"@typescript-eslint/no-non-null-assertion": "off",
4243
"@typescript-eslint/no-use-before-define": "off",
4344
"@typescript-eslint/no-warning-comments": "off",
@@ -57,6 +58,7 @@
5758
},
5859
"parserOptions": {
5960
"ecmaVersion": 2018,
61+
"project": "./tsconfig.json",
6062
"sourceType": "module"
6163
}
6264
}

src/cli.ts

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ if (cli.input.length < 1) {
177177
usage();
178178
}
179179

180+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
180181
run(cli.input[0], cli.input.slice(1)).then(success => {
181182
if (!success) {
182183
// eslint-disable-next-line no-process-exit

0 commit comments

Comments
 (0)