From 10335dc662a9ee52b94475c07a55795c6e315e6f Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 13 Feb 2020 10:38:14 +0100 Subject: [PATCH] Migrate rule no-unnecessary-type-assertion from tslint to eslint --- .eslintrc.js | 1 + tslint.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 52166b4d..09d410eb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,6 +34,7 @@ module.exports = { "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], + "@typescript-eslint/no-unnecessary-type-assertion": "warn", "@typescript-eslint/no-use-before-define": "warn", "@typescript-eslint/prefer-readonly": "warn", }, diff --git a/tslint.json b/tslint.json index f1180421..ae83928d 100644 --- a/tslint.json +++ b/tslint.json @@ -19,7 +19,7 @@ "no-implicit-dependencies": false, "no-parameter-reassignment": false, "no-unnecessary-class": [true, "allow-static-only"], - "no-unnecessary-type-assertion": true, + "no-unnecessary-type-assertion": false, "no-var-keyword": true, "object-literal-shorthand": [true, "never"], "object-literal-sort-keys": false,