-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
87 lines (81 loc) · 2.11 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"extends": "@ivangabriele/eslint-config-typescript-next",
"env": {
"browser": false,
"node": true
},
"parserOptions": {
"ecmaVersion": 2021,
"extraFileExtensions": [".cjs"],
"project": "./tsconfig.json"
},
"ignorePatterns": ["/.next/", "/.yarn/", "/public/js/", "/public/index.bundle.js", "next-env.d.ts", "/scripts"],
"rules": {
"class-methods-use-this": "off",
"consistent-return": "off",
"no-console": "error",
"no-lone-blocks": "off",
"import/prefer-default-export": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"assert": "either"
}
],
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-use-before-define": "off"
},
"overrides": [
{
"files": ["./app/**/*.ts", "./app/**/*.tsx", "./common/**/*.ts", "./pages/**/*.tsx"],
"env": {
"browser": true,
"node": true
}
},
{
"files": ["./api/**/*.ts", "./pages/**/*.ts"],
"env": {
"browser": false,
"node": true
}
},
{
"files": [
"./config/**/*.js",
"./config/**/*.ts",
"./e2e/**/*.ts",
"./prisma/seeds/**/*.js",
"./scripts/**/*.js",
"./workers/**/*.js",
"**/*.test.ts"
],
"rules": {
"import/extensions": "off",
"import/no-default-export": "off",
"no-await-in-loop": "off",
"no-console": ["error", { "allow": ["debug", "error", "warn"] }],
"no-restricted-syntax": "off",
"@typescript-eslint/no-loop-func": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
},
{
"files": ["./config/**/*.js", "./config/**/*.ts"],
"env": {
"browser": false,
"jest": true,
"node": true
}
}
]
}