-
-
Notifications
You must be signed in to change notification settings - Fork 323
/
.eslintrc.json
76 lines (76 loc) · 1.59 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"@typescript-eslint",
"prettier",
"jest",
"react",
"react-hooks",
"json"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": "off",
"no-use-before-define": 0,
"no-restricted-exports": 0,
"arrow-body-style": 0,
"dot-notation": 0,
"no-console": 0,
"max-classes-per-file": "off",
"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
}
]
},
"env": {
"jest": true,
"node": true,
"browser": true,
"es6": 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
},
"settings": {
"react": {
"version": "detect"
}
}
}