Skip to content

Commit

Permalink
feat: no-floating-promises (#756)
Browse files Browse the repository at this point in the history
closes #546

Signed-off-by: Naseem Ullah <24660299+naseemkullah@users.noreply.github.com>
  • Loading branch information
naseemkullah authored Sep 11, 2023
1 parent 58769ff commit c93e733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-warning-comments": "off",
Expand All @@ -57,6 +58,7 @@
},
"parserOptions": {
"ecmaVersion": 2018,
"project": "./tsconfig.json",
"sourceType": "module"
}
}
Expand Down
1 change: 1 addition & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ if (cli.input.length < 1) {
usage();
}

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

0 comments on commit c93e733

Please sign in to comment.