This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
.eslintrc
70 lines (70 loc) · 1.86 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"@casper124578/eslint-config",
"@casper124578/eslint-config-react",
"@casper124578/eslint-config-next"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"rules": {
"no-template-curly-in-string": "off",
"@next/next/no-page-custom-font": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@next/next/no-server-import-in-page": "off"
},
"overrides": [
{
"files": ["src/interactions/**"],
"rules": {
"no-restricted-globals": [
"error",
{
"name": "fetch",
"message": "Import request from `undici` instead (`import { request } from \"undici\"`)"
},
{
"name": "Buffer",
"message": "Import Buffer from `node:buffer` instead"
},
{
"name": "process",
"message": "Import process from `node:process` instead"
},
{
"name": "setTimeout",
"message": "Import setTimeout from `node:timers` instead"
},
{
"name": "setInterval",
"message": "Import setInterval from `node:timers` instead"
},
{
"name": "setImmediate",
"message": "Import setImmediate from `node:timers` instead"
},
{
"name": "clearTimeout",
"message": "Import clearTimeout from `node:timers` instead"
},
{
"name": "clearInterval",
"message": "Import clearInterval from `node:timers` instead"
}
]
}
}
]
}