-
Notifications
You must be signed in to change notification settings - Fork 9
/
eslint.config.js
37 lines (37 loc) · 909 Bytes
/
eslint.config.js
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
module.export = [
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"curly": [2, "all"],
"object-curly-spacing": [2, "always"],
"brace-style": [2, "1tbs"],
"space-infix-ops": ["error"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"no-console": 0,
"no-var": 2,
"prefer-const": ["error", { "destructuring": "all" }],
"prefer-template": 2,
"prefer-spread": 2,
"prefer-rest-params": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-multi-spaces": 2,
"no-unused-expressions": 2,
"no-tabs": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"sort-imports": 1
}
}
];