-
Notifications
You must be signed in to change notification settings - Fork 3
/
tslint.json
73 lines (72 loc) · 2.11 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
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"align": false,
"array-type": [true, "array"],
"interface-name": false,
"max-line-length": [
true,
{
"limit": 120,
"ignore-pattern": "^\\s*\\*\\s\\[[^\\]]+\\]\\([^)]+\\)\\)?[.,;]?$|^\\s*//\\shttp[^\\s]+$"
}
],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-constructor",
"protected-constructor",
"private-constructor"
]
}
],
"no-consecutive-blank-lines": [true, 2],
// No console methods except assert. Taken from: https://developer.mozilla.org/en-US/docs/Web/API/Console
"no-console": [true, "clear", "count", "countReset", "debug", "dir", "drixml", "error", "group", "groupCollapsed",
"info", "log", "profile", "profileEnd", "table", "time", "timeEnd", "timeLog", "timeStamp", "trace", "warn"],
"no-unnecessary-callback-wrapper": true,
"no-unused-expression": [true, "allow-new"],
// Disabled object-literal-sort-keys because of https://github.com/palantir/tslint/issues/3586
"object-literal-sort-keys": false,
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"],
"trailing-comma": [
true,
{
"multiline": {
"arrays": "always",
"exports": "always",
"functions": "never",
"imports": "always",
"objects": "always",
"typeLiterals": "always"
},
"esSpecCompliant": true
}
],
"variable-name": [true, "check-format", "allow-trailing-underscore"],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
]
},
"rulesDirectory": []
}