Migrate rule no-unnecessary-type-assertion from tslint to eslint

This commit is contained in:
Simon Warta 2020-02-13 10:38:14 +01:00
parent 984df700b2
commit 10335dc662
2 changed files with 2 additions and 1 deletions

View File

@ -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",
},

View File

@ -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,