-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc
30 lines (30 loc) · 826 Bytes
/
.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
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"plugins": ["prettier"],
"extends": ["plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": "error",
"array-bracket-spacing": "error",
"comma-spacing": "error",
"no-const-assign": "error",
"no-empty": "error",
"no-eval": "error",
"no-extra-boolean-cast": "error",
"prefer-const": "error",
"sort-imports": "error",
"sort-vars": "error",
"max-params": ["error", 3],
"prefer-destructuring": ["error", {
"array": false,
"object": true
}],
"no-console": ["warn", { "allow": ["error"]}]
}
}