Skip to content

Commit f5211b4

Browse files
committed
update tslint rules
1 parent 3c95e7f commit f5211b4

File tree

1 file changed

+47
-28
lines changed

1 file changed

+47
-28
lines changed

tslint.json

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
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": [
14-
true,
15-
"public-before-private",
16-
"static-before-instance",
17-
"variables-before-functions"
22+
true, {
23+
"order": [
24+
"static-field",
25+
"instance-field",
26+
"constructor",
27+
"public-instance-method",
28+
"protected-instance-method",
29+
"private-instance-method"
30+
]
31+
}
1832
],
1933
"no-arg": true,
2034
"no-bitwise": true,
@@ -28,12 +42,10 @@
2842
],
2943
"no-construct": true,
3044
"no-debugger": true,
31-
"no-duplicate-key": true,
3245
"no-duplicate-variable": true,
3346
"no-empty": true,
3447
"no-eval": true,
35-
"no-inferrable-types": true,
36-
"no-internal-module": true,
48+
"no-inferrable-types": false,
3749
"no-shadowed-variable": true,
3850
"no-string-literal": true,
3951
"no-switch-case-fall-through": false,
@@ -51,26 +63,33 @@
5163
"check-else",
5264
"check-whitespace"
5365
],
54-
"quotemark": [true, "double", "avoid-escape"],
55-
"radix": true,
56-
"semicolon": true,
57-
"trailing-comma": false,
58-
"triple-equals": [true, "allow-null-check"],
66+
"quotemark": [
67+
true,
68+
"double",
69+
"avoid-escape"
70+
],
71+
"radix":true,
72+
"semicolon": [
73+
true,
74+
"always"
75+
],
76+
"trailing-comma": [
77+
false
78+
],
79+
"triple-equals": [
80+
true,
81+
"allow-null-check"
82+
],
5983
"typedef-whitespace": [
6084
true, {
61-
"call-signature": "nospace",
62-
"index-signature": "nospace",
63-
"parameter": "nospace",
64-
"property-declaration": "nospace",
65-
"variable-declaration": "nospace"
66-
}],
67-
"variable-name": [
68-
true,
69-
"ban-keywords",
70-
"check-format",
71-
"allow-leading-underscore",
72-
"allow-trailing-underscore"
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)