-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.07 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
{
"env": {
"es2021": true,
"node": true
},
"extends": [
"airbnb-base",
"prettier",
"plugin:node/recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["prettier", "eslint-plugin-import-helpers"],
"rules": {
"prettier/prettier": "error",
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"module",
"/^@shared/",
["parent", "sibling", "index"]
],
"alphabetize": {
"order": "asc",
"ignoreCase": true
}
}
],
"import/prefer-default-export": "off",
"no-await-in-loop": "off",
"no-console": "off",
"node/no-unpublished-import": "off",
"import/extensions": [
"error",
"ignorePackages"
],
"no-restricted-syntax": ["error", "FunctionExpression", "WithStatement", "BinaryExpression[operator='in']"],
"no-process-exit": 0,
"no-loop-func": "off"
}
}