From dceef6bf2bd0ec3a809b1680318adb1e53d1b4b2 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 19 Feb 2020 08:58:34 +0100 Subject: [PATCH] Convert no-floating-promises to eslint --- .eslintrc.js | 1 + tslint.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 09d410eb..6e2559df 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,6 +33,7 @@ module.exports = { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-floating-promises": "warn", "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], "@typescript-eslint/no-unnecessary-type-assertion": "warn", "@typescript-eslint/no-use-before-define": "warn", diff --git a/tslint.json b/tslint.json index ae83928d..0b99ca10 100644 --- a/tslint.json +++ b/tslint.json @@ -15,7 +15,7 @@ "no-console": [true, "log"], "no-empty": false, "no-empty-interface": false, - "no-floating-promises": true, + "no-floating-promises": false, "no-implicit-dependencies": false, "no-parameter-reassignment": false, "no-unnecessary-class": [true, "allow-static-only"],