-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.base.json
70 lines (70 loc) · 1.47 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"parser": "babel-eslint",
"extends": ["airbnb/base", "plugin:import/errors", "eslint:recommended", "plugin:react/recommended"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"import/no-extraneous-dependencies": ["error", { "optionalDependencies": true }],
"import/extensions": [
"error",
"always",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"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": "babel"
}
]
},
"env": {
"jest": true
},
"globals": {
"fetch": true,
"window": true,
"document": true,
"__DEV__": true,
"__TEST__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__SSR__": true,
"__API_URL__": true,
"__WEBSITE_URL__": true,
"__FRONTEND_BUILD_DIR__": true,
"__DLL_BUILD_DIR__": true
},
"plugins": ["react", "react-hooks", "json", "import", "prettier"],
"settings": {
"react": {
"version": "16.3"
},
"import/resolver": {
"node": {
"extensions": [
".ts",
".tsx",
".web.js",
".web.jsx",
".native.js",
".native.jsx",
".js",
".jsx"
]
}
}
}
}