-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
33 lines (33 loc) · 797 Bytes
/
.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
{
"env": {
"node": true
},
"extends": ["plugin:prettier/recommended"],
"globals": {
"Promise": true,
"global": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"default-case": "error",
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"no-console": "error",
"no-undef": "error",
"no-var": "error",
"no-caller": "error",
"no-throw-literal": "error",
"no-unneeded-ternary": "error",
"prefer-const": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"handle-callback-err": ["error", "^(err|error)$"]
}
}