forked from beingtmk/nodejs-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.base.json
73 lines (73 loc) · 1.56 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
71
72
73
{
"parser": "babel-eslint",
"extends": ["airbnb/base", "plugin:import/errors", "eslint:recommended", "plugin:react/recommended"],
"rules": {
"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,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"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,
"__CDN_URL__": true,
"__DEV__": true,
"__TEST__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__SSR__": true,
"__PERSIST_GQL__": true,
"__API_URL__": true,
"__WEBSITE_URL__": true,
"__FRONTEND_BUILD_DIR__": true,
"__STRIPE_PUBLIC_KEY__": 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"
]
}
}
}
}