-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
32 lines (32 loc) · 950 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
28
29
30
31
32
{
"extends": "next/core-web-vitals",
"plugins": ["simple-import-sort"],
"rules": {
// increase the severity of rules so they are auto-fixable
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"overrides": [
// override "simple-import-sort" config
// https://github.com/lydell/eslint-plugin-simple-import-sort/blob/main/examples/.eslintrc.js
{
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages `react` related packages come first.
// type imports last in each group
["^react", "^@?\\w", "^@?\\w.*\\u0000$"],
["(?<!\\u0000)$", "(?<=\\u0000)$"],
["^\\.", "^\\..*\\u0000$"],
// Style imports.
["^.+\\.?(css)$"]
]
}
]
}
}
]
}