-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.34 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
{
"extends": ["next/core-web-vitals", "prettier"],
"rules": {
// https://github.com/vercel/style-guide/blob/1377fa3bedafe60954d20f80a455e3a0597bb354/eslint/rules/import.js#L68
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "never"
}
],
// https://github.com/vercel/style-guide/blob/1377fa3bedafe60954d20f80a455e3a0597bb354/eslint/rules/variables.js#L19
"no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": false,
"vars": "all",
"varsIgnorePattern": "^_"
}
],
// https://github.com/vercel/style-guide/blob/1377fa3bedafe60954d20f80a455e3a0597bb354/eslint/rules/import.js#L32
"import/no-default-export": "error",
// https://github.com/vercel/style-guide/blob/1377fa3bedafe60954d20f80a455e3a0597bb354/eslint/rules/best-practice.js#L26
"default-case-last": "error"
},
"overrides": [
{
"files": [
"playwright.config.ts",
"src/i18n.ts",
"src/middleware.ts",
"src/app/**/{error,layout,loading,not-found,page}.tsx"
],
"rules": {
"import/no-default-export": "off"
}
}
]
}