eslint: Allow unused variables with _ prefix in typescript.

This commit is contained in:
Thomas Ip 2019-06-03 12:18:20 +08:00 committed by Tim Abbott
parent be48eb165d
commit 676acd4ed1
1 changed files with 2 additions and 1 deletions

View File

@ -425,6 +425,7 @@
"func-call-spacing": 0, "func-call-spacing": 0,
"no-magic-numbers": 0, "no-magic-numbers": 0,
"semi": 0, "semi": 0,
"no-unused-vars": 0,
"@typescript-eslint/adjacent-overload-signatures": 2, "@typescript-eslint/adjacent-overload-signatures": 2,
"@typescript-eslint/array-type": 2, "@typescript-eslint/array-type": 2,
@ -461,7 +462,7 @@
"@typescript-eslint/no-type-alias": 0, "@typescript-eslint/no-type-alias": 0,
"@typescript-eslint/no-unnecessary-qualifier": 2, "@typescript-eslint/no-unnecessary-qualifier": 2,
"@typescript-eslint/no-unnecessary-type-assertion": 2, "@typescript-eslint/no-unnecessary-type-assertion": 2,
"@typescript-eslint/no-unused-vars": 2, "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" } ],
"@typescript-eslint/no-use-before-define": 2, "@typescript-eslint/no-use-before-define": 2,
"@typescript-eslint/no-useless-constructor": 2, "@typescript-eslint/no-useless-constructor": 2,
"@typescript-eslint/no-var-requires": 0, "@typescript-eslint/no-var-requires": 0,