-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
32 lines (32 loc) · 970 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", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-import-helpers"],
"rules": {
"@next/next/no-img-element": "off",
"@typescript-eslint/consistent-type-imports": [
"warn",
{ "fixStyle": "inline-type-imports" }
],
/* For some reason, `import/no-duplicates` doesn't warn every time it
should, so using `no-duplicate-imports` is helpful to warn in those cases */
"no-duplicate-imports": "warn",
"import/no-duplicates": ["warn", { "prefer-inline": true }],
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
["module"],
"/css$/",
"/^@//",
["parent", "sibling", "index"]
]
}
],
"sort-imports": [
"warn",
{ "ignoreCase": true, "ignoreDeclarationSort": true }
]
}
}