-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
150 lines (150 loc) · 3.76 KB
/
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"extends": ["tslint:latest", "tslint-eslint-rules", "tslint-react"],
"defaultSeverity": "error",
"rules": {
"one-line": [true, "check-open-brace", "check-else"],
"no-implicit-dependencies": false,
"no-this-assignment": [
true,
{
"allowed-names": ["^self$"],
"allow-destructuring": true
}
],
"array-type": {
"options": ["generic"]
},
"arrow-parens": {
"options": ["ban-single-arg-parens"]
},
"arrow-return-shorthand": true,
"curly": [true, "ignore-same-line"],
"indent": {
"options": ["spaces", 2]
},
"interface-name": [true, "always-prefix"],
"max-line-length": [true, {"limit": 120, "ignore-pattern": "^import |^export {(.*?)}"}],
"member-access": {
"options": ["no-public"]
},
"member-ordering": {
"options": [
"private-before-public",
"static-before-instance",
"variables-before-functions"
]
},
"no-consecutive-blank-lines": {
"options": [1]
},
"no-invalid-this": {
"options": ["check-function-in-method"]
},
"no-unused-expression": {
"options": ["allow-fast-null-checks"]
},
"object-literal-key-quotes": {
"options": ["as-needed"]
},
"quotemark": {
"options": ["single", "avoid-template", "avoid-escape", "jsx-double"]
},
"semicolon": {
"options": ["always", "ignore-bound-class-methods"]
},
"trailing-comma": {
"options": {
"multiline": "never",
"singleline": "never"
}
},
"typedef": {
"options": [
"call-signature",
"arrow-call-signature",
"arrow-parameter",
"parameter",
"property-declaration",
"member-variable-declaration"
]
},
"variable-name": {
"options": ["ban-keywords", "check-format", "allow-pascal-case", "allow-leading-underscore"]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-preblock"
]
},
"prefer-function-over-method": {
"options": ["allow-public", "allow-protected"]
},
"no-inferrable-types": {
"options": ["ignore-params", "ignore-properties"]
},
"no-multi-spaces": true,
"no-extra-semi": true,
"no-shadowed-variable": true,
"no-var-requires": false,
"object-curly-spacing": {
"options": ["always"]
},
"array-bracket-spacing": {
"options": ["never"]
},
"block-spacing": {
"options": ["always"]
},
"brace-style": [
true,
"1tbs",
{
"allowSingleLine": true
}
],
"ter-max-len": [
true,
{
"code": 120,
"ignoreComments": true,
"ignoreImports": true
}
],
"interface-over-type-literal": false,
"jsx-boolean-value": ["never"],
"jsx-no-multiline-js": false,
"no-console": false,
"no-debugger": false,
"no-submodule-imports": false,
"no-default-export": true,
"no-any": true,
"no-internal-module": true,
"no-magic-numbers": true,
"no-non-null-assertion": true,
"no-parameter-reassignment": true,
"ban-comma-operator": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-empty": false,
"no-eval": true,
"no-floating-promises": false,
"no-invalid-template-strings": true,
"no-sparse-arrays": true,
"no-string-throw": true,
"no-var-keyword": true,
"prefer-object-spread": true,
"switch-default": true,
"triple-equals": true,
"cyclomatic-complexity": [true, 10],
"jsx-wrap-multiline": false,
"newline-before-return": true
}
}