Skip to content

Commit 0345218

Browse files
committed
update tslint rules
1 parent 64c17d0 commit 0345218

File tree

1 file changed

+48
-29
lines changed

1 file changed

+48
-29
lines changed

tslint.json

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
{
22
"rules": {
33
"class-name": true,
4-
"comment-format": [true, "check-space"],
4+
"comment-format": [
5+
true,
6+
"check-space"
7+
],
58
"curly": true,
69
"eofline": true,
710
"forin": true,
8-
"indent": [true, "spaces"],
11+
"indent": [
12+
true,
13+
"spaces"
14+
],
915
"label-position": true,
10-
"label-undefined": true,
11-
"max-line-length": [true, 140],
16+
"max-line-length": [
17+
true,
18+
140
19+
],
1220
"member-access": true,
1321
"member-ordering": [
1422
true,
15-
"public-before-private",
16-
"static-before-instance",
17-
"variables-before-functions"
23+
{
24+
"order": [
25+
"static-field",
26+
"instance-field",
27+
"constructor",
28+
"public-instance-method",
29+
"protected-instance-method",
30+
"private-instance-method"
31+
]
32+
}
1833
],
1934
"no-arg": true,
2035
"no-bitwise": true,
@@ -28,19 +43,15 @@
2843
],
2944
"no-construct": true,
3045
"no-debugger": true,
31-
"no-duplicate-key": true,
3246
"no-duplicate-variable": true,
3347
"no-empty": true,
3448
"no-eval": true,
35-
"no-inferrable-types": true,
36-
"no-internal-module": true,
49+
"no-inferrable-types": false,
3750
"no-shadowed-variable": true,
3851
"no-string-literal": true,
3952
"no-switch-case-fall-through": false,
4053
"no-trailing-whitespace": true,
4154
"no-unused-expression": true,
42-
"no-unused-variable": true,
43-
"no-unreachable": true,
4455
"no-use-before-declare": true,
4556
"no-var-keyword": true,
4657
"object-literal-sort-keys": true,
@@ -51,26 +62,34 @@
5162
"check-else",
5263
"check-whitespace"
5364
],
54-
"quotemark": [true, "double", "avoid-escape"],
55-
"radix": true,
56-
"semicolon": true,
57-
"trailing-comma": false,
58-
"triple-equals": [true, "allow-null-check"],
65+
"quotemark": [
66+
true,
67+
"double",
68+
"avoid-escape"
69+
],
70+
"radix":true,
71+
"semicolon": [
72+
true,
73+
"always"
74+
],
75+
"trailing-comma": [
76+
false
77+
],
78+
"triple-equals": [
79+
true,
80+
"allow-null-check"
81+
],
5982
"typedef-whitespace": [
60-
true, {
61-
"call-signature": "nospace",
62-
"index-signature": "nospace",
63-
"parameter": "nospace",
64-
"property-declaration": "nospace",
65-
"variable-declaration": "nospace"
66-
}],
67-
"variable-name": [
6883
true,
69-
"ban-keywords",
70-
"check-format",
71-
"allow-leading-underscore",
72-
"allow-trailing-underscore"
84+
{
85+
"call-signature":"nospace",
86+
"index-signature":"nospace",
87+
"parameter":"nospace",
88+
"property-declaration":"nospace",
89+
"variable-declaration":"nospace"
90+
}
7391
],
92+
"variable-name": false,
7493
"whitespace": [
7594
true,
7695
"check-branch",

0 commit comments

Comments
 (0)