forked from sunbird-cb/sunbird-cb-adminportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
54 lines (54 loc) · 1.45 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
{
"defaultSeverity": "error",
"extends": ["tslint-config-airbnb", "tslint-angular"],
"rules": {
"component-selector": [true, "element", "ws", "viewer", "kebab-case"],
"directive-selector": [true, "attribute", "ws", "camelCase"],
"semicolon": [true, "never"],
"ter-indent": [false],
"arrow-parens": [true, "ban-single-arg-parens"],
"ter-arrow-parens": [true, "as-needed"],
"no-console": true,
"interface-name": [true, "always-prefix"],
"max-line-length": [
true,
{
"limit": 1000,
"ignore-pattern": "^import |^export {(.*?)}",
"check-strings": true,
"check-regex": true
}
],
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-leading-underscore",
"require-const-for-all-caps"
]
},
"function-name": [
true,
{
"function-regex": "^[a-z$][\\w\\d]+[$]?",
"method-regex": "^[a-z$][\\w\\d]+[$]?",
"private-method-regex": "^[a-z$][\\w\\d]+[$]?",
"protected-method-regex": "^[a-z$][\\w\\d]+[$]?",
"static-method-regex": "^[a-z$][\\w\\d]+[$]?"
}
],
"trailing-comma": {
"options": {
"multiline": {
"arrays": "always",
"exports": "always",
"functions": "ignore",
"imports": "always",
"objects": "always",
"typeLiterals": "never"
},
"singleline": "never"
}
}
}
}