-
Notifications
You must be signed in to change notification settings - Fork 3
/
tslint.json
86 lines (86 loc) · 2.66 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
83
84
85
86
{
"extends": [
"tslint:recommended",
"tslint-eslint-rules",
"tslint-config-prettier",
"tslint-consistent-codestyle"
],
"rulesDirectory": ["tslint-consistent-codestyle"],
"rules": {
"curly": [true, "ignore-same-line"],
"member-access": [true, "no-public"],
"object-literal-sort-keys": false,
"array-type": [true, "generic"],
"ordered-imports": [false],
"no-namespace": [true, "allow-declarations"],
"interface-name": [true, "never-prefix"],
"completed-docs": [
true,
{
"classes": { "visibilities": ["exported"] },
"enums": { "visibilities": ["exported"] },
"functions": { "visibilities": ["exported"] },
"interfaces": { "visibilities": ["exported"] },
"namespaces": { "visibilities": ["exported"] },
"types": { "visibilities": ["exported"] },
"variables": { "visibilities": ["exported"] },
"methods": { "locations": ["all"], "privacies": ["public"] },
"properties": { "locations": ["all"], "privacies": ["public"] }
}
],
"variable-name": false,
"naming-convention": [
true,
{
"type": "default",
"format": "camelCase",
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"type": "variable",
"modifiers": ["global", "const"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"type": "variable",
"modifiers": ["export", "const"],
"format": "UPPER_CASE"
},
{
"type": "functionVariable",
"modifiers": ["export", "const"],
"format": "camelCase"
},
{
"type": "member",
"modifiers": "private",
"leadingUnderscore": "require"
},
{
"type": "member",
"modifiers": "protected",
"leadingUnderscore": "require"
},
{
"type": "property",
"modifiers": ["public", "static", "const"],
"format": "UPPER_CASE"
},
{ "type": "type", "format": "PascalCase" },
{ "type": "class", "modifiers": "abstract", "prefix": "Abstract" },
{ "type": "enumMember", "format": "PascalCase" }
],
"early-exit": [true, { "max-length": 0 }],
"no-accessor-recursion": true,
"no-collapsible-if": true,
"no-unnecessary-else": true,
"no-else-after-return": true,
"no-return-undefined": [true, "allow-void-expression"],
"no-static-this": true,
"no-unused": true,
"no-var-before-return": [true, "allow-destructuring"],
"object-shorthand-properties-first": true,
"prefer-while": true
}
}