-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
57 lines (57 loc) · 1.23 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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"es6": true,
"browser": true,
"commonjs": true
},
"globals": {
"process": true,
"APP_VERSION": true
},
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
],
"settings": {
"import/resolver": "webpack"
},
"rules": {
"key-spacing": [1, {
"beforeColon": false,
"afterColon": true
}],
"comma-spacing": [1, {
"before": false,
"after": true
}],
"object-curly-spacing": ["warn", "always"],
"no-trailing-spaces": ["warn"],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-undef": 1,
"quotes": [1, "single"],
"jsx-quotes": ["warn", "prefer-single"],
"eol-last": ["warn", "always"],
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"no-debugger": 1,
"no-console": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-no-undef": 2,
"indent": ["warn", 4],
"semi": ["warn", "never"]
},
"plugins": [
"react",
"import"
]
}