forked from RequestNetwork/requestNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
60 lines (60 loc) · 1.81 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
{
"defaultSeverity": "error",
"extends": ["tslint:recommended"],
"rules": {
"indent": [true, "spaces", 4],
"quotemark": [true, "single"],
"curly": [true],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
"max-line-length": [false],
"arrow-parens": [false],
"no-var-requires": [false],
"completed-docs": [
true,
{
"classes": true,
"enums": true,
"functions": true,
"interfaces": { "visibilities": ["exported"] },
"methods": {
"locations": "all",
"privacies": ["public", "protected"]
},
"namespaces": true,
"properties": {
"locations": "all",
"privacies": ["public", "protected"]
},
"types": true
}
],
"no-unused-variable": true,
"jsdoc-format": true,
"typedef": [
true,
"call-signature",
"arrow-call-signature",
"parameter",
"property-declaration"
],
"cyclomatic-complexity": true,
"switch-default": true,
"restrict-plus-operands": true,
"prefer-conditional-expression": [true, "check-else-if"],
"no-unsafe-any": false, // We want it, but it triggers too many errors as of today
"no-unnecessary-class": [true, "allow-static-only"],
"no-unbound-method": true,
"no-this-assignment": [true, { "allow-destructuring": true }],
"no-switch-case-fall-through": true,
"no-return-await": true,
"no-invalid-this": true,
"no-invalid-template-strings": true,
"no-implicit-dependencies": [true, "dev"],
"no-floating-promises": true,
"no-dynamic-delete": true,
"no-duplicate-switch-case": true,
"ban-comma-operator": true,
"await-promise": [true, "Bluebird"],
"no-magic-numbers": [true, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
}
}