-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon-typescript-specific.tslint.json
108 lines (108 loc) · 2.41 KB
/
common-typescript-specific.tslint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"rules": {
"adjacent-overload-signatures": true,
"ban-types": [
true,
[
"{}",
"Use object instead."
],
[
"Array",
"Use [] instead."
],
[
"Boolean",
"Use lowercase version instead."
],
[
"Function",
"Use arrow function type signature instead."
],
[
"Number",
"Use lowercase version instead."
],
[
"Object",
"Use lowercase version instead."
],
[
"String",
"Use lowercase version instead."
]
],
"member-access": [
true,
"check-accessor"
],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-any": true,
"no-empty-interface": false,
"no-import-side-effect": [
true,
{
"ignore-module": "(rxjs/add)"
}
],
"no-inferrable-types": true,
"no-internal-module": true,
"no-magic-numbers": true,
"no-namespace": true,
"no-non-null-assertion": true,
"no-parameter-reassignment": true,
"no-reference": true,
"no-unnecessary-type-assertion": true,
"no-var-requires": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"prefer-for-of": true,
"promise-function-async": true,
"typedef": [
true,
"call-signature",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"unified-signatures": true
}
}