-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
67 lines (67 loc) · 1.77 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"module": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": false,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"semi": [2, "never"],
"jsx-quotes": [2, "prefer-single"],
"no-console": [2, { "allow": ["info", "warn", "error"] }],
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"no-debugger": 0,
"strict": [2, "never"],
"generator-star-spacing": [2, "after"],
"object-shorthand": [2, "always"],
"arrow-parens": [2, "as-needed"],
"babel/new-cap": 2,
"no-await-in-loop": 2,
"prefer-template": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-closing-bracket-location": [1, "after-props"],
"react/jsx-no-bind": 2,
"max-len": [2, 120, 4],
"indent": [2, 4],
"object-curly-spacing": [
2,
"always",
{
"arraysInObjects": false,
"objectsInObjects": false
}
],
"array-bracket-spacing": [
2,
"always",
{
"singleValue": false,
"objectsInArrays": false,
"arraysInArrays": false
}
],
"no-trailing-spaces": 2
},
"plugins": ["babel", "react"]
}