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
commit 297910039a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,