Skip to content

Commit b4d5392

Browse files
committed
tslint: Extend tslint:recommended
Rather than take a whitelist approach to the rules, I think it would be better to start with some goal (for example, the tslint:recommended set of rules) and disable those that we don't follow. This way, it's easy to see which ones we could potentially enable. This doesn't mean that we have to follow all of them. If there are rules that we don't want, we can move them to a "Rules from tslint:recommended that we don't want" section.
1 parent d0dc094 commit b4d5392

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

tslint.json

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,47 @@
11
{
22
"defaultSeverity": "error",
3+
"extends": "tslint:recommended",
34
"rules": {
4-
"no-var-keyword": true,
5-
"prefer-const": true,
6-
"no-null-keyword": true
5+
"no-null-keyword": true,
6+
/* Rules in tslint:recommended that we don't follow yet. */
7+
"array-type": false,
8+
"arrow-parens": false,
9+
"arrow-return-shorthand": false,
10+
"ban-types": false,
11+
"class-name": false,
12+
"comment-format": false,
13+
"curly": false,
14+
"eofline": false,
15+
"indent": false,
16+
"interface-name": false,
17+
"max-classes-per-file": false,
18+
"max-line-length": false,
19+
"member-access": false,
20+
"member-ordering": false,
21+
"no-angle-bracket-type-assertion": false,
22+
"no-bitwise": false,
23+
"no-conditional-assignment": false,
24+
"no-consecutive-blank-lines": false,
25+
"no-empty": false,
26+
"no-shadowed-variable": false,
27+
"no-trailing-whitespace": false,
28+
"no-unnecessary-initializer": false,
29+
"no-var-requires": false,
30+
"object-literal-shorthand": false,
31+
"object-literal-sort-keys": false,
32+
"one-line": false,
33+
"one-variable-per-declaration": false,
34+
"only-arrow-functions": false,
35+
"ordered-imports": false,
36+
"prefer-for-of": false,
37+
"quotemark": false,
38+
"radix": false,
39+
"semicolon": false,
40+
"space-before-function-paren": false,
41+
"trailing-comma": false,
42+
"triple-equals": false,
43+
"typedef-whitespace": false,
44+
"variable-name": false,
45+
"whitespace": false
746
}
847
}

0 commit comments

Comments
 (0)