-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
49 lines (48 loc) · 1.07 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
{
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/all","prettier"],
"plugins":["react","prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"ecmaVersion":6,
"experimentalObjectRestSpread":true
}
},
"globals": {
"require":true,
"__dirname":true,
"module":true,
"Promise":true,
"console":true,
"document": true,
"window": true,
"process": true,
"__DEV__": true,
"__SERVER__":true,
"__PROD__":true,
"fetch": true,
"importScripts":true,
"global":true,
"serviceWorkerOption":true,
"navigator": true,
"self": true
},
"rules": {
"react/jsx-indent":[2,"tab"],
"react/jsx-indent-props":0,
"react/jsx-no-literals":0,
"react/react-in-jsx-scope":0,
"react/prop-types":0,
"react/no-unused-prop-types":0,
"react/forbid-component-props":0,
"no-unused-vars": [2,{"varsIgnorePattern":"^h$"}],
"react/jsx-filename-extension":[2,{"extensions":[".js"]}],
"react/jsx-max-props-per-line":0,
"prettier/prettier":["error",{
"tabWidth":4,
"useTabs":true,
"semi":false
}]
}
}