Enable tslint with basic rules
Add tslint as a plugin to tsc, so that they will show up in vscode or whatever editor people use. I only enabled two basic rules that I think are very useful, prefer-const and no-var-keyword. Violations of these rules were fixed with "tslint -p . --fix". There was one unused variable (in the isExpandable) function that I removed by hand.
This commit is contained in:
parent
9b97ee8f39
commit
1244e4133c
15 changed files with 209 additions and 196 deletions
10
package.json
10
package.json
|
|
@ -926,10 +926,12 @@
|
|||
"ssh2": "^0.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^2.1.6",
|
||||
"vscode": "^1.0.3",
|
||||
"mocha": "^3.2.0",
|
||||
"@types/mocha": "^2.2.39",
|
||||
"@types/node": "^7.0.5",
|
||||
"@types/mocha": "^2.2.39"
|
||||
"mocha": "^3.2.0",
|
||||
"tslint": "^5.11.0",
|
||||
"tslint-language-service": "^0.9.9",
|
||||
"typescript": "^2.1.6",
|
||||
"vscode": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue