Commit graph

5 commits

Author SHA1 Message Date
Simon Marchi
9a942c5047 tslint: Enable eofline 2018-07-18 11:16:58 -04:00
Simon Marchi
dd24a05670 tslint: Enable whitespace 2018-07-18 11:16:22 -04:00
Simon Marchi
e0ed9f71b8 tslint: Enable no-var-requires
Rationale from the rule's page:

AMD-style require([]) and CommonJS-style require("") statements are
environment-specific and more difficult to statically analyze.

ES2015-style imports are part of the JavaScript language specfication
and recommended as the path going forward. TypeScript will compile them
to environment-specific forms as needed.
2018-07-18 10:52:48 -04:00
Simon Marchi
1244e4133c 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.
2018-07-17 18:19:37 -04:00
WebFreak001
4440bfbe18 Initial commit 2016-01-10 18:03:51 +01:00