-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
40 lines (40 loc) · 1.25 KB
/
.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
31
32
33
34
35
36
37
38
39
40
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [],
"extends": [
"eslint:recommended"
],
"rules": {
"quotes": [ "error", "single" ],
"space-in-parens": [ "error", "always" ],
"object-curly-spacing": [ "error", "always", { "objectsInObjects": true } ],
"block-spacing": "error",
"array-bracket-spacing": [ "error", "always" ],
"computed-property-spacing": [ "error", "always" ],
"template-curly-spacing": [ "error", "always" ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"space-before-blocks": [ "error", "always" ],
"no-console": [ "off" ],
"no-unused-vars": [ "warn" ],
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"semi": [ "error", "never" ],
"space-before-function-paren": [ "error", "never" ],
"no-class-assign": "off",
"no-case-declarations": "off",
"no-useless-escape": "off",
}
}