-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
39 lines (39 loc) · 846 Bytes
/
.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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"keyword-spacing": 2,
"object-curly-spacing": [2, "always"],
"object-shorthand": [2, "always"],
"one-var": [2, "never"],
"no-array-constructor": 2,
"no-console": 1,
"no-const-assign": 2,
"no-new-object": 2,
"no-unused-vars": 1,
"no-var": 2,
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 1,
"prefer-template": 2,
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"require-yield": 1,
"semi": 2,
"space-before-function-paren": 2
}
}