-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
122 lines (122 loc) · 2.71 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": "tslint:recommended",
"rules": {
"template-banana-in-box": true,
"template-no-negated-async": true,
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
],
"component-max-inline-declarations": true,
"no-lifecycle-call": false,
"prefer-output-readonly": false,
"no-conflicting-lifecycle": true,
"enforce-component-selector": false,
"no-inputs-metadata-property": true,
"no-outputs-metadata-property": true,
"no-host-metadata-property": true,
"use-view-encapsulation": false,
"no-attribute-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-output-on-prefix": false,
"no-forward-ref": true,
"no-unused-css": false,
"use-lifecycle-interface": true,
"contextual-lifecycle": true,
"trackBy-function": false,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"no-pipe-impure": true,
"i18n": [
false,
"check-id",
"check-text"
],
"template-cyclomatic-complexity": [
false,
5
],
"template-conditional-complexity": [
true,
4
],
"trailing-comma": [false, {
"multiline": "always",
"singleline": "never"
}],
"interface-name": [false, "always-prefix"],
"use-pipe-decorator": true,
"no-console": [
true,
"time",
"timeEnd",
"trace"
],
"max-line-length": [true, {
"limit": 100,
"ignore-pattern": "^import |^export"
}],
"max-file-line-count": [
true,
500
],
"no-string-literal": false,
"object-literal-sort-keys": false,
"quotemark": [
true,
"single",
"avoid-escape"
],
"variable-name": [
true,
"allow-leading-underscore",
"allow-pascal-case",
"ban-keywords",
"check-format"
],
"globals-module-required": true,
"no-duplicate-imports": true,
"ordered-imports": [
true,
{
"module-source-path": "full",
"grouped-imports": true,
"groups": [
{
"name": "angular",
"match": "^@angular\/.*",
"order": 1
},
{
"name": "@shared",
"match": "^(@shared|environment).*",
"order": 3
},
{
"name": "relative dir",
"match": "^([.]|app).*",
"order": 4
},
{
"name": "node_modules",
"match": ".*",
"order": 2
}
]
}
]
},
"rulesDirectory": [
"codelyzer"
]
}