-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtslint.json
60 lines (60 loc) · 1.69 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",
"env": {
"es6": true,
"node": true
},
"extends": [
"tslint:recommended",
"tslint-config-airbnb",
"tslint-config-prettier",
"tslint-plugin-prettier",
"tslint-no-circular-imports"
],
"plugins": ["prettier"],
"jsRules": {},
"linterOptions": {
"exclude": ["node_modules", "protos", "build"]
},
"rules": {
"prettier": true,
"interface-name": false,
"max-classes-per-file": true,
"space-before-function-paren": false,
"object-literal-sort-keys": false,
"no-console": false,
"no-empty-interface": false,
"no-namespace": false,
"no-parameter-reassignment": false,
"no-this-assignment": false,
"no-shadowed-variable": [
true,
{
"temporalDeadZone": false
}
],
"array-type": false,
"import-name": false,
"import-blacklist": [true, "protos"],
"no-floating-promises": true,
"no-bitwise": false,
"no-return-await": false,
"ordered-imports": false,
"object-literal-shorthand": false,
"object-shorthand-properties-first": false,
"no-var-requires": false,
"member-ordering": [true, { "order": "instance-sandwich" }],
"no-switch-case-fall-through": true,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
"function-name": [
true,
{
"method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"private-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"protected-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"static-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"function-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$"
}
]
}
}