-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
50 lines (49 loc) · 1.01 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
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": [
"prettier"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"prettier/prettier": "error",
"indent": [1, "tab", { "SwitchCase": 1 }],
"quotes": [1, "single"],
"eqeqeq": [2, "always"],
"strict": 1,
"no-unused-vars": 1,
"semi": [2, "always"],
"no-implicit-globals": 2,
"curly": 2,
"guard-for-in": 1,
"default-case": 1,
"dot-location": [2, "property"],
"new-cap": 1,
"no-trailing-spaces": 1,
"eol-last": 1,
"block-spacing": [1, "always"],
"array-bracket-spacing": [1, "never"],
"camelcase": 1,
"space-before-function-paren": [
1,
{
"anonymous": "always",
"named": "never"
}
],
"no-spaced-func": 2,
"one-var-declaration-per-line": [1, "always"],
"object-curly-spacing": [1, "always"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"spaced-comment": [1, "always"],
"no-console": 0
}
}