-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathtslint.json
More file actions
78 lines (76 loc) · 2.1 KB
/
Copy pathtslint.json
File metadata and controls
78 lines (76 loc) · 2.1 KB
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
{
"extends": ["tslint:recommended"],
"rulesDirectory": ["codelyzer"],
"rules": {
// TypeScript
"ordered-imports": false,
"trailing-comma": false,
"arrow-parens": false,
"indent": [true, "spaces", 2],
"interface-name": false,
"member-access": [true, "no-public"],
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
"no-duplicate-imports": true,
"no-empty": false,
"no-inferrable-types": [true, "ignore-params"],
"no-switch-case-fall-through": true,
"object-literal-sort-keys": false,
"quotemark": [true, "single"],
"variable-name": [
true,
"check-format",
"allow-leading-underscore",
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-module",
"check-operator",
"check-rest-spread",
"check-separator",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
],
// Codelyzer
"angular-whitespace": [
true,
"check-interpolation",
// TODO: readd after https://github.com/mgechev/codelyzer/issues/412
// "check-pipe",
"check-semicolon"
],
"template-banana-in-box": true,
"component-class-suffix": [true, "Component", "View"],
"directive-class-suffix": true,
"no-attribute-decorator": true,
"no-forward-ref": true,
"no-input-rename": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-host-metadata-property": true,
"no-inputs-metadata-property": true,
"use-lifecycle-interface": true,
"no-outputs-metadata-property": true,
"use-pipe-decorator": true,
"use-pipe-transform-interface": true,
// Codelyzer (expect an override)
"component-selector": [true, "element", ["app"], "kebab-case"],
"directive-selector": [true, "attribute", ["app"], "camelCase"],
"pipe-naming": [true, "camelCase", "app"]
}
}