-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.json
50 lines (50 loc) · 1.35 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
{
"extends": [
"xo",
"plugin:import/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
],
"env": {
"node": true,
"es2020": true
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"arrow-body-style": "error",
"camelcase": "off",
"capitalized-comments": "off",
"curly": ["error", "multi-line", "consistent"],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-cycle": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{ "alphabetize": { "order": "asc" }, "newlines-between": "always" }
],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 5],
"no-await-in-loop": "off",
"no-useless-constructor": "error",
"no-var": "error",
"object-shorthand": ["error", "consistent-as-needed"],
"prefer-arrow-callback": "error",
"prefer-destructuring": ["error", { "array": true, "object": false }],
"prefer-const": "error",
"prefer-template": "error",
"strict": "error",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prevent-abbreviations": [
"error",
{ "replacements": { "args": false } }
]
}
}