forked from sysgears/apollo-universal-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.base.json
50 lines (50 loc) · 1008 Bytes
/
.eslintrc.base.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
{
"parser": "babel-eslint",
"extends": [
"airbnb/base",
"plugin:import/errors",
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"import/no-extraneous-dependencies": ["error", {"optionalDependencies": true}],
"no-use-before-define": 0,
"arrow-body-style": 0,
"dot-notation": 0,
"no-console": 0,
"react/jsx-key": 0,
"semi": 2,
"react/sort-comp": 1,
"prettier/prettier": [
"error",
{
"printWidth": 120,
"singleQuote": true,
"parser": "babylon"
}
]
},
"env": {
"mocha": true
},
"globals": {
"fetch": true,
"window": true,
"document": true,
"__DEV__": true,
"__TEST__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__SSR__": true,
"__PERSIST_GQL__": true,
"__API_URL__": true,
"__WEBSITE_URL__": true,
"__FRONTEND_BUILD_DIR__": true,
"__DLL_BUILD_DIR__": true
},
"plugins": [
"react",
"json",
"prettier"
]
}