Skip to content

Commit 1c75040

Browse files
authored
chore: changed unused variables from build error to lint error (#16544)
This compiler flag really has no business being a compiler flag and makes debugging a pain.
1 parent 1b85035 commit 1c75040

File tree

12 files changed

+23
-22
lines changed

12 files changed

+23
-22
lines changed

src/bazel-tsconfig-build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"declaration": true,
1010
"stripInternal": false,
1111
"experimentalDecorators": true,
12-
"noUnusedParameters": true,
13-
"noUnusedLocals": true,
12+
"noUnusedParameters": false,
13+
"noUnusedLocals": false,
1414
"strictNullChecks": true,
1515
"strictFunctionTypes": true,
1616
"noFallthroughCasesInSwitch": true,

src/dev-app/tsconfig-aot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Needed for Moment.js since it doesn't have a default export.
77
"allowSyntheticDefaultImports": true,
88
"experimentalDecorators": true,
9-
"noUnusedParameters": true,
10-
"noUnusedLocals": true,
9+
"noUnusedParameters": false,
10+
"noUnusedLocals": false,
1111
"strictNullChecks": true,
1212
"strictFunctionTypes": true,
1313
"noImplicitAny": true,

src/dev-app/tsconfig-build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"declaration": false,
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
10-
"noUnusedParameters": true,
11-
"noUnusedLocals": true,
10+
"noUnusedParameters": false,
11+
"noUnusedLocals": false,
1212
"strictNullChecks": true,
1313
"strictFunctionTypes": true,
1414
"noImplicitThis": true,

src/material-examples/tsconfig-build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"declaration": true,
88
"stripInternal": false,
99
"experimentalDecorators": true,
10-
"noUnusedParameters": true,
11-
"noUnusedLocals": true,
10+
"noUnusedParameters": false,
11+
"noUnusedLocals": false,
1212
"strictNullChecks": true,
1313
"strictFunctionTypes": true,
1414
"noImplicitAny": true,

src/material-moment-adapter/tsconfig-build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"declaration": true,
88
"stripInternal": false,
99
"experimentalDecorators": true,
10-
"noUnusedParameters": true,
11-
"noUnusedLocals": true,
10+
"noUnusedParameters": false,
11+
"noUnusedLocals": false,
1212
"strictNullChecks": true,
1313
"strictFunctionTypes": true,
1414
"noImplicitAny": true,

src/material/schematics/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"noEmitOnError": false,
88
"strictNullChecks": true,
99
"skipDefaultLibCheck": true,
10-
"noUnusedLocals": true,
11-
"noUnusedParameters": true,
10+
"noUnusedLocals": false,
11+
"noUnusedParameters": false,
1212
"skipLibCheck": true,
1313
"sourceMap": true,
1414
"declaration": true,

src/universal-app/tsconfig-build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"declaration": true,
66
"stripInternal": false,
77
"experimentalDecorators": true,
8-
"noUnusedParameters": true,
9-
"noUnusedLocals": true,
8+
"noUnusedParameters": false,
9+
"noUnusedLocals": false,
1010
"strictNullChecks": true,
1111
"strictFunctionTypes": true,
1212
"noImplicitAny": true,

src/universal-app/tsconfig-prerender.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"declaration": false,
55
"stripInternal": false,
66
"experimentalDecorators": true,
7-
"noUnusedParameters": true,
8-
"noUnusedLocals": true,
7+
"noUnusedParameters": false,
8+
"noUnusedLocals": false,
99
"strictNullChecks": true,
1010
"strictFunctionTypes": true,
1111
"noImplicitAny": true,

tools/dgeni/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"noUnusedParameters": true,
4-
"noUnusedLocals": true,
3+
"noUnusedParameters": false,
4+
"noUnusedLocals": false,
55
"lib": ["es2015", "dom", "es2016.array.include"],
66
"moduleResolution": "node",
77
"strictNullChecks": true,

tools/gulp/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"experimentalDecorators": true,
4-
"noUnusedParameters": true,
5-
"noUnusedLocals": true,
4+
"noUnusedParameters": false,
5+
"noUnusedLocals": false,
66
"lib": ["es2015", "dom", "es2016.array.include"],
77
"module": "commonjs",
88
"moduleResolution": "node",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"experimentalDecorators": true,
77
"module": "es2015",
88
"moduleResolution": "node",
9-
"noUnusedParameters": true,
9+
"noUnusedParameters": false,
1010
"noFallthroughCasesInSwitch": true,
11-
"noUnusedLocals": true,
11+
"noUnusedLocals": false,
1212
"strictNullChecks": true,
1313
"strictFunctionTypes": true,
1414
"noImplicitAny": true,

tslint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"no-bitwise": true,
2828
"no-shadowed-variable": true,
2929
"no-unused-expression": true,
30+
"no-unused-variable": true,
3031
"no-var-keyword": true,
3132
"member-access": [true, "no-public"],
3233
"no-debugger": true,

0 commit comments

Comments
 (0)