diff --git a/src/bazel-tsconfig-build.json b/src/bazel-tsconfig-build.json index efddac0061a6..688cbea0dcaf 100644 --- a/src/bazel-tsconfig-build.json +++ b/src/bazel-tsconfig-build.json @@ -10,6 +10,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/cdk-experimental/tsconfig-build.json b/src/cdk-experimental/tsconfig-build.json index ff560dedc537..45eebfc04491 100644 --- a/src/cdk-experimental/tsconfig-build.json +++ b/src/cdk-experimental/tsconfig-build.json @@ -6,6 +6,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/dev-app/tsconfig-aot.json b/src/dev-app/tsconfig-aot.json index 6faa3db693e4..e991ddf71dcc 100644 --- a/src/dev-app/tsconfig-aot.json +++ b/src/dev-app/tsconfig-aot.json @@ -7,6 +7,7 @@ "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/dev-app/tsconfig-build.json b/src/dev-app/tsconfig-build.json index eafed58a1860..bbd2fb21604a 100644 --- a/src/dev-app/tsconfig-build.json +++ b/src/dev-app/tsconfig-build.json @@ -8,6 +8,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, diff --git a/src/lib/button/button.ts b/src/lib/button/button.ts index 000527117994..8b4fcb260b45 100644 --- a/src/lib/button/button.ts +++ b/src/lib/button/button.ts @@ -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) { diff --git a/src/lib/schematics/tsconfig.json b/src/lib/schematics/tsconfig.json index b6488d765562..ad488c1b7f78 100644 --- a/src/lib/schematics/tsconfig.json +++ b/src/lib/schematics/tsconfig.json @@ -7,6 +7,8 @@ "noEmitOnError": false, "strictNullChecks": true, "skipDefaultLibCheck": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "skipLibCheck": true, "sourceMap": true, "declaration": true, diff --git a/src/material-examples/tsconfig-build.json b/src/material-examples/tsconfig-build.json index 44114d67f5ed..76d15b8e4e0a 100644 --- a/src/material-examples/tsconfig-build.json +++ b/src/material-examples/tsconfig-build.json @@ -8,6 +8,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/material-experimental/tsconfig-build.json b/src/material-experimental/tsconfig-build.json index b009c8f7e457..9b0d56ceebc4 100644 --- a/src/material-experimental/tsconfig-build.json +++ b/src/material-experimental/tsconfig-build.json @@ -6,6 +6,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/material-moment-adapter/tsconfig-build.json b/src/material-moment-adapter/tsconfig-build.json index bbfdb1906025..00b897f40aa7 100644 --- a/src/material-moment-adapter/tsconfig-build.json +++ b/src/material-moment-adapter/tsconfig-build.json @@ -8,6 +8,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/universal-app/tsconfig-build.json b/src/universal-app/tsconfig-build.json index 4b59f1b671b5..7234e84a5f0d 100644 --- a/src/universal-app/tsconfig-build.json +++ b/src/universal-app/tsconfig-build.json @@ -6,6 +6,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/universal-app/tsconfig-prerender.json b/src/universal-app/tsconfig-prerender.json index bccab972099d..b70a9d625772 100644 --- a/src/universal-app/tsconfig-prerender.json +++ b/src/universal-app/tsconfig-prerender.json @@ -5,6 +5,7 @@ "stripInternal": false, "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/tools/dgeni/tsconfig.json b/tools/dgeni/tsconfig.json index b939d7613762..8670f62807f4 100644 --- a/tools/dgeni/tsconfig.json +++ b/tools/dgeni/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "lib": ["es2015", "dom", "es2016.array.include"], "module": "commonjs", "moduleResolution": "node", diff --git a/tools/gulp/tsconfig.json b/tools/gulp/tsconfig.json index 2db82ffaece1..740bb612790c 100644 --- a/tools/gulp/tsconfig.json +++ b/tools/gulp/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "experimentalDecorators": true, "noUnusedParameters": true, + "noUnusedLocals": true, "lib": ["es2015", "dom", "es2016.array.include"], "module": "commonjs", "moduleResolution": "node", diff --git a/tsconfig.json b/tsconfig.json index 9db1f4a58b1c..6c6570c721fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,7 @@ "module": "es2015", "moduleResolution": "node", "noUnusedParameters": true, + "noUnusedLocals": true, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/tslint.json b/tslint.json index 350ca87bd8db..1bd198990d52 100644 --- a/tslint.json +++ b/tslint.json @@ -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",