diff --git a/src/bazel-tsconfig-build.json b/src/bazel-tsconfig-build.json index 48972a554e0..a18bef3c422 100644 --- a/src/bazel-tsconfig-build.json +++ b/src/bazel-tsconfig-build.json @@ -9,8 +9,8 @@ "declaration": true, "stripInternal": false, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noFallthroughCasesInSwitch": true, diff --git a/src/dev-app/tsconfig-aot.json b/src/dev-app/tsconfig-aot.json index 904eda36e02..8a77a413358 100644 --- a/src/dev-app/tsconfig-aot.json +++ b/src/dev-app/tsconfig-aot.json @@ -6,8 +6,8 @@ // Needed for Moment.js since it doesn't have a default export. "allowSyntheticDefaultImports": true, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/dev-app/tsconfig-build.json b/src/dev-app/tsconfig-build.json index c2cf7f80bc1..65e321f9847 100644 --- a/src/dev-app/tsconfig-build.json +++ b/src/dev-app/tsconfig-build.json @@ -7,8 +7,8 @@ "declaration": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, diff --git a/src/material-examples/tsconfig-build.json b/src/material-examples/tsconfig-build.json index 92f7400de4d..c5921fe9040 100644 --- a/src/material-examples/tsconfig-build.json +++ b/src/material-examples/tsconfig-build.json @@ -7,8 +7,8 @@ "declaration": true, "stripInternal": false, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "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 00b897f40aa..8348d78408f 100644 --- a/src/material-moment-adapter/tsconfig-build.json +++ b/src/material-moment-adapter/tsconfig-build.json @@ -7,8 +7,8 @@ "declaration": true, "stripInternal": false, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/material/schematics/tsconfig.json b/src/material/schematics/tsconfig.json index ad488c1b7f7..0bebfd57985 100644 --- a/src/material/schematics/tsconfig.json +++ b/src/material/schematics/tsconfig.json @@ -7,8 +7,8 @@ "noEmitOnError": false, "strictNullChecks": true, "skipDefaultLibCheck": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "skipLibCheck": true, "sourceMap": true, "declaration": true, diff --git a/src/universal-app/tsconfig-build.json b/src/universal-app/tsconfig-build.json index 7112463c624..bfb07dc0471 100644 --- a/src/universal-app/tsconfig-build.json +++ b/src/universal-app/tsconfig-build.json @@ -5,8 +5,8 @@ "declaration": true, "stripInternal": false, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/src/universal-app/tsconfig-prerender.json b/src/universal-app/tsconfig-prerender.json index d7c7f8413cf..b66c7e0825d 100644 --- a/src/universal-app/tsconfig-prerender.json +++ b/src/universal-app/tsconfig-prerender.json @@ -4,8 +4,8 @@ "declaration": false, "stripInternal": false, "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/tools/dgeni/tsconfig.json b/tools/dgeni/tsconfig.json index 28d0aca264e..476fbcb40dc 100644 --- a/tools/dgeni/tsconfig.json +++ b/tools/dgeni/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "lib": ["es2015", "dom", "es2016.array.include"], "moduleResolution": "node", "strictNullChecks": true, diff --git a/tools/gulp/tsconfig.json b/tools/gulp/tsconfig.json index 740bb612790..8a3d30f1db0 100644 --- a/tools/gulp/tsconfig.json +++ b/tools/gulp/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "experimentalDecorators": true, - "noUnusedParameters": true, - "noUnusedLocals": true, + "noUnusedParameters": false, + "noUnusedLocals": false, "lib": ["es2015", "dom", "es2016.array.include"], "module": "commonjs", "moduleResolution": "node", diff --git a/tsconfig.json b/tsconfig.json index 7923e7ec281..7ba194f4fd5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,9 +6,9 @@ "experimentalDecorators": true, "module": "es2015", "moduleResolution": "node", - "noUnusedParameters": true, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, - "noUnusedLocals": true, + "noUnusedLocals": false, "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitAny": true, diff --git a/tslint.json b/tslint.json index 05cb91ef291..3ccf012d331 100644 --- a/tslint.json +++ b/tslint.json @@ -27,6 +27,7 @@ "no-bitwise": true, "no-shadowed-variable": true, "no-unused-expression": true, + "no-unused-variable": true, "no-var-keyword": true, "member-access": [true, "no-public"], "no-debugger": true,