Skip to content

Commit dd378fe

Browse files
beemanhansl
authored andcommitted
fix(lint): use noUnusedParameters and noUnusedLocals instead of no-unused-variabl (#3945)
Running npm lint yielded this warning: no-unused-variable is deprecated. Use the tsc compiler options --noUnusedParameters and --noUnusedLocals instead.
1 parent 3c82b77 commit dd378fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"moduleResolution": "node",
77
"noEmitOnError": true,
88
"noImplicitAny": true,
9+
"noUnusedParameters": true,
10+
"noUnusedLocals": true,
911
"outDir": "./dist",
1012
"rootDir": ".",
1113
"sourceMap": true,

tslint.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"no-trailing-whitespace": true,
2020
"no-bitwise": true,
2121
"no-unused-expression": true,
22-
"no-unused-variable": true,
2322
"no-var-keyword": true,
2423
"one-line": [
2524
true,

0 commit comments

Comments
 (0)