-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.23 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
{
"parser": "@babel/eslint-parser",
"plugins": ["unused-imports", "react", "react-hooks", "@next/eslint-plugin-next", "tailwindcss"],
"rules": {
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
],
"no-undef" : "error",
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn"
},
"globals": {
"console" : "readonly",
"document" : "readonly",
"fetch" : "readonly",
"global" : "readonly",
"error" : "readonly",
"test" : "readonly",
"expect" : "readonly",
"module" : "readonly",
"require" : "readonly",
"keyof" : "readonly",
"requestAnimationFrame" : "readonly",
"performance" : "readonly",
"Record" : "readonly",
"Partial" : "readonly",
"Omit" : "readonly",
"Nullable" : "readonly",
"Promise" : "readonly",
"MutationObserver" : "readonly",
"Float32Array" : "readonly",
"Uint16Array" : "readonly",
"CustomEvent" : "readonly",
"setTimeout" : "readonly",
"setInterval" : "readonly",
"clearInterval" : "readonly",
"clearTimeout" : "readonly",
"DOMParser" : "readonly"
}
}