forked from counterfactual/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
26 lines (26 loc) · 916 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
{
"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}
],
// See https://github.com/counterfactual/monorepo/pull/231#discussion_r233860710
"import-name": false
}
}