-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
126 lines (126 loc) · 2.72 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"env": {
"es2022": true
},
"globals": {
"__DEV__": "readonly",
"__PROD__": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/jsx-runtime",
"next/core-web-vitals",
"prettier"
],
"rules": {
"import/no-duplicates": "error",
"import/no-named-as-default": "off",
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"target": [
"./syncing/**/*"
],
"from": [
"./!(syncing|syncingInterface|config|node_modules)/**/*",
"./node_modules/@sentry/nextjs/**/*"
],
"message": "\nsyncing can only import from syncing, syncingInterface, graphql, and non browser specific node_modules"
}
]
}
],
"no-unused-expressions": "error",
"no-console": "error",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-restricted-imports": [
"error",
{
"patterns": [
"@mui/*/*/*/*"
],
"paths": [
"react-use"
]
}
],
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/hook-use-state": "warn",
"react/jsx-no-useless-fragment": "warn",
"react/jsx-no-script-url": "error",
"react/void-dom-elements-no-children": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useIsomorphicLayoutEffect|useEffectWithPrevDeps)"
}
],
"react/no-unknown-property": [
"error",
{
"ignore": [
"jsx"
]
}
],
"@next/next/no-img-element": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "multiline-const",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "multiline-const"
},
{
"blankLine": "always",
"prev": "function",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "function"
}
]
},
"overrides": [
{
"files": [
"**/*.ts?(x)"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}
]
}