-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
44 lines (44 loc) · 1.04 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
{
"extends": [
"next/core-web-vitals",
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["simple-import-sort", "sort-keys-fix", "@typescript-eslint"],
"rules": {
"simple-import-sort/exports": "error",
"sort-keys": [
"error",
"asc",
{ "caseSensitive": true, "natural": false, "minKeys": 2 }
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react", "^@?\\w"],
["(@|components)(/.*|$)"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.?(css)$"]
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {
"sort-keys-fix/sort-keys-fix": "warn",
"@typescript-eslint/no-unused-vars": "warn"
}
}
]
}