Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitgetLimited
GitHub Repository: BitgetLimited/V3-bitget-api-sdk
Path: blob/master/bitget-node-sdk-api/tslint.json
731 views
1
{
2
"defaultSeverity": "error",
3
"extends": [
4
"tslint:recommended"
5
],
6
"jsRules": {
7
"class-name": true,
8
"forin": true,
9
"import-spacing": true,
10
"jsdoc-format": true,
11
"label-position": true,
12
"new-parens": true,
13
"no-arg": true,
14
"no-bitwise": true,
15
"no-conditional-assignment": true,
16
"no-consecutive-blank-lines": true,
17
"no-construct": true,
18
"no-debugger": true,
19
"no-duplicate-super": true,
20
"no-duplicate-variable": true,
21
"no-empty": true,
22
"no-eval": true,
23
"no-reference": true,
24
"no-shadowed-variable": true,
25
"no-string-literal": true,
26
"no-string-throw": true,
27
"no-switch-case-fall-through": false,
28
"no-unused-expression": true,
29
// disable this rule as it is very heavy performance-wise and not that useful
30
"no-use-before-declare": false,
31
"one-variable-per-declaration": {
32
"options": [
33
"ignore-for-loop"
34
]
35
},
36
"radix": true,
37
"triple-equals": {
38
"options": [
39
"allow-null-check"
40
]
41
},
42
"use-isnan": true,
43
"variable-name": {
44
"options": [
45
"allow-leading-underscore",
46
"ban-keywords",
47
"check-format",
48
"allow-pascal-case"
49
]
50
}
51
},
52
"rules": {
53
"quotemark": {
54
"options": "single"
55
},
56
"adjacent-overload-signatures": true,
57
"array-type": {
58
"options": [
59
"array"
60
]
61
},
62
"ban-types": {
63
"options": [
64
[
65
"Object",
66
"Avoid using the `Object` type. Did you mean `object`?"
67
],
68
[
69
"Function",
70
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
71
],
72
[
73
"Boolean",
74
"Avoid using the `Boolean` type. Did you mean `boolean`?"
75
],
76
[
77
"Number",
78
"Avoid using the `Number` type. Did you mean `number`?"
79
],
80
[
81
"String",
82
"Avoid using the `String` type. Did you mean `string`?"
83
],
84
[
85
"Symbol",
86
"Avoid using the `Symbol` type. Did you mean `symbol`?"
87
]
88
]
89
},
90
"callable-types": true,
91
"class-name": true,
92
"comment-format": {
93
"options": [
94
"check-space"
95
]
96
},
97
"cyclomatic-complexity": false,
98
"forin": true,
99
"jsdoc-format": true,
100
"label-position": true,
101
"max-classes-per-file": {
102
"options": 4
103
},
104
"new-parens": true,
105
"no-angle-bracket-type-assertion": true,
106
"no-any": false,
107
"no-arg": true,
108
"no-bitwise": true,
109
"no-conditional-assignment": true,
110
"no-construct": true,
111
"no-debugger": true,
112
"no-duplicate-super": true,
113
"no-empty": true,
114
"no-empty-interface": true,
115
"no-eval": true,
116
"no-internal-module": true,
117
"no-invalid-this": false,
118
"no-misused-new": true,
119
"no-namespace": true,
120
"no-parameter-properties": false,
121
"no-reference": true,
122
"no-reference-import": true,
123
"no-shadowed-variable": true,
124
"no-string-literal": true,
125
"no-string-throw": true,
126
"no-switch-case-fall-through": false,
127
"no-trailing-whitespace": true,
128
"no-unnecessary-initializer": true,
129
"no-unsafe-finally": true,
130
"no-unused-expression": true,
131
"no-use-before-declare": false,
132
// disabled because it is very heavy performance-wise and not that useful
133
"no-var-keyword": true,
134
"no-var-requires": true,
135
"object-literal-shorthand": true,
136
"one-variable-per-declaration": {
137
"options": [
138
"ignore-for-loop"
139
]
140
},
141
"only-arrow-functions": {
142
"options": [
143
"allow-declarations",
144
"allow-named-functions"
145
]
146
},
147
"prefer-const": true,
148
"prefer-for-of": true,
149
"radix": true,
150
"triple-equals": {
151
"options": [
152
"allow-null-check"
153
]
154
},
155
"typedef": false,
156
"typeof-compare": false,
157
// deprecated in TSLint 5.9.0
158
"unified-signatures": true,
159
"use-isnan": true,
160
"variable-name": {
161
"options": [
162
"allow-leading-underscore",
163
"ban-keywords",
164
"check-format",
165
"allow-pascal-case"
166
]
167
}
168
},
169
"rulesDirectory": [],
170
"linterOptions": {
171
"exclude": [
172
"build/**/*.ts"
173
]
174
}
175
}
176