forked from counterfactual/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
24 lines (24 loc) · 805 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
{
"extends": [
"tslint-config-airbnb",
"tslint-plugin-prettier",
"tslint-config-prettier"
],
"rules": {
"prettier": true,
// TODO: Remove this override once tslint-microsoft-contrib releases 5.2.2.
// https://github.com/counterfactual/monorepo/issues/216
"function-name": [true, {
"method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]+\\]?$",
"private-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]+\\]?$",
"protected-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]+\\]?$",
"static-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]+\\]?$",
"function-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]+\\]?$"
}],
// NOTE: Added by Liam. I just prefer this rule to be on. Looks clean.
"ordered-imports": [
true,
{"grouped-imports": true}
]
}
}