From 14074856b6acfbb16308cc80043094ea032e0b61 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 2 Dec 2016 11:35:04 +0200 Subject: [PATCH] Enable more strict checks for linter/tsc --- tsconfig.json | 2 ++ tslint.json | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 950a07a1..38caa5da 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,8 @@ "outDir": ".tmp", "pretty": true, "moduleResolution": "node", + "noUnusedParameters": true, + "noUnusedLocals": true, "types": [ "core-js", "jasmine", diff --git a/tslint.json b/tslint.json index 19d7a0b3..d50cd5fc 100644 --- a/tslint.json +++ b/tslint.json @@ -13,14 +13,12 @@ ], "no-arg": true, "no-construct": true, - "no-duplicate-key": true, + "no-duplicate-variable": true, "no-empty": true, "no-eval": true, "no-trailing-whitespace": true, "no-unused-expression": true, - "no-unused-variable": true, - "no-unreachable": true, "no-use-before-declare": true, "one-line": [true, "check-open-brace", @@ -36,10 +34,8 @@ ], "variable-name": false, - "directive-selector-type": [true, "attribute"], - "component-selector-type": [true, "element"], - "component-selector-name": [true, "kebab-case"], - "directive-selector-name": [true, "camelCase"], + "directive-selector": [true, "attribute", "", "camelCase"], + "component-selector": [true, "element", "", "kebab-case"], "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true, @@ -53,6 +49,10 @@ "no-access-missing-member": true, "invoke-injectable": true, "no-forward-ref": true, - "no-attribute-parameter-decorator": true + "no-attribute-parameter-decorator": true, + "templates-use-public": true, + "no-access-missing-member": true, + "invoke-injectable": true, + "no-unused-css": true } }