-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
27 lines (27 loc) · 882 Bytes
/
.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
{
"plugins": ["@typescript-eslint", "simple-import-sort"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"react-hooks/exhaustive-deps": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react", "^@?\\w"],
["^(@|components)(/.*|$)"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.?(styles)$", "^.+\\.?(css)$", "^.+\\.?(scss)$"]
]
}
],
"simple-import-sort/exports": "error"
}
}