diff --git a/package.json b/package.json index 033c3e8..e11d144 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "lint": "tslint -c tslint.json \"src/**/*.ts\"" }, "devDependencies": { - "tslint": "^3.15.1", - "typescript": "^2.0.3", + "tslint": "^4.2.0", + "typescript": "^2.1.4", "typings": "^2.0.0", "vsce": "^1.8.1", "vscode": "^1.0.0" diff --git a/tsconfig.json b/tsconfig.json index d4a4dcf..086e5c7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,9 @@ "strictNullChecks": true, "noImplicitThis": true, "noImplicitReturns": true, + "noUnusedLocals": true, + "allowUnreachableCode": false, + "allowUnusedLabels": false, "typeRoots": [ "typings/modules", "typings/globals" diff --git a/tslint.json b/tslint.json index c12f024..49a522d 100644 --- a/tslint.json +++ b/tslint.json @@ -3,7 +3,6 @@ "class-name": true, "comment-format": [true, "check-space"], "indent": [true, "spaces"], - "no-duplicate-variable": true, "no-eval": true, "no-internal-module": true, "no-trailing-whitespace": true, @@ -36,10 +35,7 @@ "one-variable-per-declaration": [true, "ignore-for-loop"], "curly": true, "no-empty": true, - "no-duplicate-key": true, - "no-unreachable": true, "no-unused-expression": true, - "no-unused-variable": [true], "eofline": true, "trailing-comma": [true, {"singleline": "never", "multiline": "never"}], "align": [true, "parameters", "statements"]