Skip to content

Commit

Permalink
build: replace deprecated tslint rule with compiler option (#13186)
Browse files Browse the repository at this point in the history
Removes the `no-unused-variable` tslint rule which has been logging out a deprecation warning, with the equivalent compiler option.
  • Loading branch information
crisbeto authored and vivian-hu-zz committed Dec 12, 2018
1 parent 3fb4b23 commit 5dfa45f
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/bazel-tsconfig-build.json
Expand Up @@ -10,6 +10,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/cdk-experimental/tsconfig-build.json
Expand Up @@ -6,6 +6,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/dev-app/tsconfig-aot.json
Expand Up @@ -7,6 +7,7 @@
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/dev-app/tsconfig-build.json
Expand Up @@ -8,6 +8,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
Expand Down
3 changes: 1 addition & 2 deletions src/lib/button/button.ts
Expand Up @@ -96,8 +96,7 @@ export class MatButton extends _MatButtonMixinBase
* @deprecated Platform checks for SSR are no longer needed
* @breaking-change 8.0.0
*/
// tslint:disable-next-line:no-unused-variable
private _platform: Platform,
_platform: Platform,
private _focusMonitor: FocusMonitor,
// @breaking-change 8.0.0 `_animationMode` parameter to be made required.
@Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/schematics/tsconfig.json
Expand Up @@ -7,6 +7,8 @@
"noEmitOnError": false,
"strictNullChecks": true,
"skipDefaultLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true,
"sourceMap": true,
"declaration": true,
Expand Down
1 change: 1 addition & 0 deletions src/material-examples/tsconfig-build.json
Expand Up @@ -8,6 +8,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/material-experimental/tsconfig-build.json
Expand Up @@ -6,6 +6,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/material-moment-adapter/tsconfig-build.json
Expand Up @@ -8,6 +8,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/universal-app/tsconfig-build.json
Expand Up @@ -6,6 +6,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions src/universal-app/tsconfig-prerender.json
Expand Up @@ -5,6 +5,7 @@
"stripInternal": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 1 addition & 0 deletions tools/dgeni/tsconfig.json
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"lib": ["es2015", "dom", "es2016.array.include"],
"module": "commonjs",
"moduleResolution": "node",
Expand Down
1 change: 1 addition & 0 deletions tools/gulp/tsconfig.json
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"lib": ["es2015", "dom", "es2016.array.include"],
"module": "commonjs",
"moduleResolution": "node",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -7,6 +7,7 @@
"module": "es2015",
"moduleResolution": "node",
"noUnusedParameters": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Expand Up @@ -30,7 +30,6 @@
"no-var-keyword": true,
"member-access": [true, "no-public"],
"no-debugger": true,
"no-unused-variable": true,
"one-line": [
true,
"check-catch",
Expand Down

0 comments on commit 5dfa45f

Please sign in to comment.