Skip to content

Commit 5dfa45f

Browse files
crisbetovivian-hu-zz
authored andcommitted
build: replace deprecated tslint rule with compiler option (#13186)
Removes the `no-unused-variable` tslint rule which has been logging out a deprecation warning, with the equivalent compiler option.
1 parent 3fb4b23 commit 5dfa45f

File tree

15 files changed

+15
-3
lines changed

15 files changed

+15
-3
lines changed

src/bazel-tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"stripInternal": false,
1111
"experimentalDecorators": true,
1212
"noUnusedParameters": true,
13+
"noUnusedLocals": true,
1314
"strictNullChecks": true,
1415
"strictFunctionTypes": true,
1516
"noImplicitAny": true,

src/cdk-experimental/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"stripInternal": false,
77
"experimentalDecorators": true,
88
"noUnusedParameters": true,
9+
"noUnusedLocals": true,
910
"strictNullChecks": true,
1011
"strictFunctionTypes": true,
1112
"noImplicitAny": true,

src/dev-app/tsconfig-aot.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"allowSyntheticDefaultImports": true,
88
"experimentalDecorators": true,
99
"noUnusedParameters": true,
10+
"noUnusedLocals": true,
1011
"strictNullChecks": true,
1112
"strictFunctionTypes": true,
1213
"noImplicitAny": true,

src/dev-app/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
1010
"noUnusedParameters": true,
11+
"noUnusedLocals": true,
1112
"strictNullChecks": true,
1213
"strictFunctionTypes": true,
1314
"noImplicitThis": true,

src/lib/button/button.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ export class MatButton extends _MatButtonMixinBase
9696
* @deprecated Platform checks for SSR are no longer needed
9797
* @breaking-change 8.0.0
9898
*/
99-
// tslint:disable-next-line:no-unused-variable
100-
private _platform: Platform,
99+
_platform: Platform,
101100
private _focusMonitor: FocusMonitor,
102101
// @breaking-change 8.0.0 `_animationMode` parameter to be made required.
103102
@Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) {

src/lib/schematics/tsconfig.json

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

src/material-examples/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"stripInternal": false,
99
"experimentalDecorators": true,
1010
"noUnusedParameters": true,
11+
"noUnusedLocals": true,
1112
"strictNullChecks": true,
1213
"strictFunctionTypes": true,
1314
"noImplicitAny": true,

src/material-experimental/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"stripInternal": false,
77
"experimentalDecorators": true,
88
"noUnusedParameters": true,
9+
"noUnusedLocals": true,
910
"strictNullChecks": true,
1011
"strictFunctionTypes": true,
1112
"noImplicitAny": true,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"stripInternal": false,
99
"experimentalDecorators": true,
1010
"noUnusedParameters": true,
11+
"noUnusedLocals": true,
1112
"strictNullChecks": true,
1213
"strictFunctionTypes": true,
1314
"noImplicitAny": true,

src/universal-app/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"stripInternal": false,
77
"experimentalDecorators": true,
88
"noUnusedParameters": true,
9+
"noUnusedLocals": true,
910
"strictNullChecks": true,
1011
"strictFunctionTypes": true,
1112
"noImplicitAny": true,

src/universal-app/tsconfig-prerender.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"stripInternal": false,
66
"experimentalDecorators": true,
77
"noUnusedParameters": true,
8+
"noUnusedLocals": true,
89
"strictNullChecks": true,
910
"strictFunctionTypes": true,
1011
"noImplicitAny": true,

tools/dgeni/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"experimentalDecorators": true,
44
"noUnusedParameters": true,
5+
"noUnusedLocals": true,
56
"lib": ["es2015", "dom", "es2016.array.include"],
67
"module": "commonjs",
78
"moduleResolution": "node",

tools/gulp/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"experimentalDecorators": true,
44
"noUnusedParameters": true,
5+
"noUnusedLocals": true,
56
"lib": ["es2015", "dom", "es2016.array.include"],
67
"module": "commonjs",
78
"moduleResolution": "node",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"module": "es2015",
88
"moduleResolution": "node",
99
"noUnusedParameters": true,
10+
"noUnusedLocals": true,
1011
"strictNullChecks": true,
1112
"strictFunctionTypes": true,
1213
"noImplicitAny": true,

tslint.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"no-var-keyword": true,
3131
"member-access": [true, "no-public"],
3232
"no-debugger": true,
33-
"no-unused-variable": true,
3433
"one-line": [
3534
true,
3635
"check-catch",

0 commit comments

Comments
 (0)