-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
39 lines (37 loc) · 1007 Bytes
/
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
{
"extends": "tslint-config-airbnb",
"rules": {
"indent": [
true,
"tabs",
4
],
"ter-indent": [true, "tab", 4],
"no-consecutive-blank-lines": [true, 2],
"variable-name": [true, "check-format", "ban-keywords", "allow-leading-underscore", "allow-pascal-case"],
"import-name": false,
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"space-in-parens": [true, "always", { "exceptions": ["{}", "[]"] }],
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"function-name" : [
true,
{
"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]+$",
"function-regex": "^[a-zA-Z][\\w\\d]+$"
}
]
},
"env": {
"browser": true,
"node": true
}
}