-
-
Notifications
You must be signed in to change notification settings - Fork 257
/
.eslintrc.json
35 lines (35 loc) · 967 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
34
35
{
"root": true,
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:import/recommended"
],
"plugins": ["import"],
"rules": {
"array-bracket-spacing": "error",
"arrow-parens": "error",
"comma-dangle": "error",
"dot-location": ["error", "property"],
"eol-last": "error",
"generator-star-spacing": ["error", { "before": false, "after": true }],
"indent": ["error", 2, { "ignoreComments": true, "SwitchCase": 1 }],
"linebreak-style": "error",
"no-console": ["error", { "allow": ["error"] }],
"no-trailing-spaces": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "_.*" }],
"prefer-const": ["error", { "destructuring": "all" }],
"semi": "error",
"quotes": ["error", "double", { "allowTemplateLiterals": true }]
},
"settings": {
"import/resolver": "node"
}
}