Update TSLint
parent
646cf7a14d
commit
0062a5c814
|
@ -44,8 +44,8 @@
|
||||||
"lint": "tslint -c tslint.json \"src/**/*.ts\""
|
"lint": "tslint -c tslint.json \"src/**/*.ts\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tslint": "^3.15.1",
|
"tslint": "^4.2.0",
|
||||||
"typescript": "^2.0.3",
|
"typescript": "^2.1.4",
|
||||||
"typings": "^2.0.0",
|
"typings": "^2.0.0",
|
||||||
"vsce": "^1.8.1",
|
"vsce": "^1.8.1",
|
||||||
"vscode": "^1.0.0"
|
"vscode": "^1.0.0"
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"noImplicitThis": true,
|
"noImplicitThis": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"allowUnreachableCode": false,
|
||||||
|
"allowUnusedLabels": false,
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"typings/modules",
|
"typings/modules",
|
||||||
"typings/globals"
|
"typings/globals"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"class-name": true,
|
"class-name": true,
|
||||||
"comment-format": [true, "check-space"],
|
"comment-format": [true, "check-space"],
|
||||||
"indent": [true, "spaces"],
|
"indent": [true, "spaces"],
|
||||||
"no-duplicate-variable": true,
|
|
||||||
"no-eval": true,
|
"no-eval": true,
|
||||||
"no-internal-module": true,
|
"no-internal-module": true,
|
||||||
"no-trailing-whitespace": true,
|
"no-trailing-whitespace": true,
|
||||||
|
@ -36,10 +35,7 @@
|
||||||
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"no-empty": true,
|
"no-empty": true,
|
||||||
"no-duplicate-key": true,
|
|
||||||
"no-unreachable": true,
|
|
||||||
"no-unused-expression": true,
|
"no-unused-expression": true,
|
||||||
"no-unused-variable": [true],
|
|
||||||
"eofline": true,
|
"eofline": true,
|
||||||
"trailing-comma": [true, {"singleline": "never", "multiline": "never"}],
|
"trailing-comma": [true, {"singleline": "never", "multiline": "never"}],
|
||||||
"align": [true, "parameters", "statements"]
|
"align": [true, "parameters", "statements"]
|
||||||
|
|
Loading…
Reference in New Issue