-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
56 lines (55 loc) · 1.75 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
46
47
48
49
50
51
52
53
54
55
56
{
"root": true,
"env": {
"es2021": true
},
"ignorePatterns": ["src/public/**/*"],
// "extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 12,
"ecmaFeatures": {
"impliedStrict": true
}
},
// (first parameter of a rule) 0: off, 1: warning, 2: error
"rules": {
"indent": [2, 2, { "SwitchCase": 1 }],
"linebreak-style": [2, "unix"],
"quotes": [2, "single", { "allowTemplateLiterals": true }],
"semi": [2, "never"],
"array-bracket-spacing": [2, "never"],
"arrow-spacing": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"block-spacing": 2,
"comma-spacing": 2,
"computed-property-spacing": [2, "never"],
"func-call-spacing": 2,
"keyword-spacing": 2,
"key-spacing": [2, { "mode": "minimum" }],
"object-curly-spacing": [2, "always"],
"no-irregular-whitespace": 2,
"no-multi-spaces": [2, {
"exceptions": {
"ImportDeclaration": true
}
}],
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-spaced-func": 2,
"rest-spread-spacing": [2, "never"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-before-blocks": 2,
"space-before-function-paren": [0, { "asyncArrow": "always" }],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always", {
"block": {
"balanced": true
}
}],
"template-curly-spacing": [2, "never"],
"template-tag-spacing": [2, "always"]
}
}