-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
38 lines (38 loc) · 1.03 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint", "sort-class-members", "prettier"],
"rules": {
"lines-between-class-members": "error",
"sort-class-members/sort-class-members": [
2,
{
"order": [
"constructor",
"[x-methods-static]",
"[x-properties]",
"[x-getters]",
"[x-methods]"
],
"groups": {
"x-properties": {
"name": "/#.+/",
"sort": "alphabetical"
},
"x-getters": {
"type": "method",
"kind": "get",
"sort": "alphabetical"
},
"x-methods": { "type": "method", "sort": "alphabetical" },
"x-methods-static": { "type": "method", "static": true, "sort": "alphabetical" }
},
"accessorPairPositioning": "getThenSet"
}
]
}
}