-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
44 lines (44 loc) · 2.09 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
{
"defaultSeverity": "warn",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rulesDirectory": ["tslint-consistent-codestyle"],
"rules": {
"member-access": true,
"member-ordering": false,
"no-import-side-effect": false,
"max-classes-per-file": false,
"trailing-comma": false,
"no-namespace": false,
"max-line-length": false,
"one-variable-per-declaration": false,
"interface-name":false,
"object-literal-sort-keys": false,
"no-var-requires": false,
"no-reference": false,
"no-switch-case-fall-through": true,
"no-console": false,
"naming-convention": [
true,
{"type": "default", "format": "camelCase", "leadingUnderscore": "forbid", "trailingUnderscore": "forbid"},
{"type": "property", "modifiers": ["public"], "filter": "^(?!toString$)", "format": "PascalCase", "final": true},
{"type": "property", "modifiers": ["public", "static", "readonly"], "format": "UPPER_CASE", "final": true},
{"type": "parameterProperty", "filter": "x", "format": "camelCase"},
{"type": "method", "modifiers": ["public"], "format": "PascalCase"},
{"type": "interface", "format": "PascalCase"},
{"type": "typeAlias", "format": "PascalCase"},
{"type": "genericTypeParameter", "format": "PascalCase"},
{"type": "enum", "format": "PascalCase"},
{"type": "class", "format": "PascalCase"},
{"type": "variable", "modifiers": ["local"], "format": null },
{"type": "method", "modifiers": ["private", "protected"], "format": "camelCase"},
{"type": "property", "modifiers": ["private", "protected"], "format": "camelCase"},
{"type": "property", "modifiers": "private", "leadingUnderscore": "forbid"},
{"type": "method", "modifiers": "private", "leadingUnderscore": "forbid"},
{"type": "enumMember", "format": "UPPER_CASE"}
],
"variable-name": false
}
}