-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.11 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
51
52
53
54
55
56
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 2018
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".json", ".js", ".jsx"]
}
},
"react": {
"version": "detect"
}
},
"rules": {
"prefer-object-spread": 0,
"no-console": "warn",
"indent": [ 1, 2 ],
"no-unused-expressions":"error",
"no-multiple-empty-lines":"warn",
"no-trailing-spaces": "warn",
"eol-last": "warn",
"arrow-parens":"off",
"no-underscore-dangle":"off",
"react/jsx-filename-extension": "off",
"import/no-named-as-default": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/anchor-is-valid": "off",
"import/no-extraneous-dependencies": "off"
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true,
"Headers": true,
"Request": true,
"fetch": true,
"process": true,
"__dirname": true,
"module": true
},
"parser": "babel-eslint"
}