diff --git a/.eslintrc.json b/.eslintrc.json index 5bba7289..dc77e888 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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", @@ -57,6 +58,7 @@ }, "parserOptions": { "ecmaVersion": 2018, + "project": "./tsconfig.json", "sourceType": "module" } } diff --git a/src/cli.ts b/src/cli.ts index 5af1b549..d58724ba 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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