This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
62 lines (58 loc) · 2.22 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
{
"rulesDirectory": ["tslint-consistent-codestyle"],
"extends": "tslint:recommended",
"rules": {
"array-type": false,
"no-trailing-whitespace": {
"severity": "warn"
},
"member-ordering": false,
"ordered-imports": true,
"variable-name": false,
"max-line-length": false,
"max-classes-per-file": false,
"no-unused-expression": {
"severity": "warn",
"options": [
"allow-fast-null-checks"
]
},
"forin": [
false
],
"no-bitwise": false,
"trailing-comma": false,
"object-literal-sort-keys": false,
"only-arrow-functions": [
true
],
"triple-equals": [
true,
"allow-null-check"
],
"quotemark": [
true,
"single",
"avoid-escape"
],
"class-name": {
"severity": "warn"
},
"naming-convention": {
"severity": "warn",
"options": [
true,
{"type": "method", "filter": "^toJSON$", "format": null},
{"type": "method", "modifiers": "private", "leadingUnderscore": "forbid", "format":"camelCase"},
{"type": "method", "modifiers": "protected", "leadingUnderscore": "forbid", "format":"camelCase"},
{"type": "method", "modifiers": "public", "leadingUnderscore": "forbid", "format":"PascalCase"},
{"type": "method", "modifiers": ["public", "static"], "leadingUnderscore": "forbid", "format":["UPPER_CASE", "PascalCase"]},
{"type": "property", "modifiers": "private", "leadingUnderscore": "require", "format":"camelCase"},
{"type": "property", "modifiers": "protected", "leadingUnderscore": "require", "format":"camelCase"},
{"type": "property", "modifiers": "public", "leadingUnderscore": "forbid", "format": "PascalCase"},
{"type": "property", "modifiers": ["public", "static"], "leadingUnderscore": "forbid", "format":"UPPER_CASE"},
{"type": "enumMember", "format": "PascalCase"}
]
}
}
}