Merge pull request #85 from confio/no-unnecessary-type-assertion

Migrate rule no-unnecessary-type-assertion from tslint to eslint
This commit is contained in:
Simon Warta
2020-02-13 12:03:54 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
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",
},
+1 -1
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,