-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.19 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
{
"extends": [
"next/core-web-vitals","prettier"
],
"plugins": [
"tailwindcss","react", "simple-import-sort"
],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"constructor-super": "warn",
"no-console": "warn",
"no-const-assign": "warn",
"no-duplicate-imports": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"tailwindcss/classnames-order": "warn",
"tailwindcss/enforces-negative-arbitrary-values": "error",
"tailwindcss/enforces-shorthand": "error",
"tailwindcss/no-contradicting-classname": "error",
"valid-typeof": "warn"
},
"overrides": [
// override "simple-import-sort" config
{
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
["^next"],
["^react$", "^[a-z]"],
["^components","^content","^model","^pages","^utils"],
["^clsx","supabase/supabase-js", "^contentful"],
["^.+\\.?(css)$"]
]
}
]
}
}
]
}