forked from xivanalysis/xivanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
82 lines (82 loc) · 1.72 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
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-eslint-rules"
],
"linterOptions": {
"exclude": [
"src/**/*.module.css.d.ts"
]
},
"rules": {
"arrow-parens": false,
"array-type": [true, "array-simple"],
"indent": {"options": "tabs"},
"interface-name": {"options": "never-prefix"},
"no-console": {
"severity": "warn",
"options": ["log"]
},
"no-empty": {"options": ["allow-empty-functions"]},
"max-classes-per-file": false,
"max-line-length": false,
"member-access": false,
"member-ordering": {
"options": {
"order": [
"static-field",
"static-method",
"instance-field",
"constructor",
"instance-method"
]
}
},
"no-magic-numbers": {
"severity": "warn",
"options": [
-1, // Used by a lot of stuff (inc stdlib) to represent not found
0, // I prefer .length===0 checks most of the time
1, // THE NUMBER ONE
2, // Often used for number formatting and similar
100, // Percents
1000 // Lots of translation between s and ms
]
},
"no-shadowed-variable": false,
"object-curly-spacing": {"options": "never"},
"object-literal-sort-keys": false,
"quotemark": {
"options": [
"single",
"jsx-double",
"avoid-template",
"avoid-escape"
]
},
"semicolon": {"options": "never"},
"trailing-comma": {"options": {
"multiline":"always",
"singleline": "never",
"esSpecCompliant": true
}},
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case",
"allow-leading-underscore"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-separator",
"check-type",
"check-typecast"
]
}
}
}