-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
57 lines (53 loc) · 1.61 KB
/
.eslintrc.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
55
56
57
{
"root": true,
"env": {
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"tsdoc/syntax": "warn",
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
"@typescript-eslint/member-ordering": [
"warn",
{
"default": {
"memberTypes": [
// Static Fields
"public-static-field",
"protected-static-field",
"private-static-field",
// Static Methods
"public-static-method",
"protected-static-method",
"private-static-method",
// Instance Fields
"public-instance-field",
"public-abstract-field",
"protected-instance-field",
"protected-abstract-field",
"private-instance-field",
"constructor",
// Instance Methods
"public-instance-method",
"public-abstract-method",
"protected-instance-method",
"protected-abstract-method",
"private-instance-method"
],
"order": "alphabetically"
},
"interfaces": {
"memberTypes": ["signature", "field", "constructor", "method"],
"order": "alphabetically"
},
"typeLiterals": {
"memberTypes": ["signature", "field", "constructor", "method"],
"order": "alphabetically"
}
}
]
}
}