-
Notifications
You must be signed in to change notification settings - Fork 0
/
.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
{
"plugins": ["@typescript-eslint", "prettier", "eslint-plugin-import-helpers"],
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"import-helpers/order-imports": [
"warn",
{
"groups": [
["absolute", "module"],
"/@/",
"/^types/",
"/^api/",
"/^services/",
"/^hooks/",
"/^pages/",
"/^features/",
"/^components/",
"/^assets/",
["sibling", "parent", "index"]
],
"newlinesBetween": "always",
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"no-restricted-imports": [
"error",
{
"patterns": [".*"]
}
],
"prettier/prettier": "warn",
"react/display-name": "off",
"react/jsx-sort-props": [
"error",
{
"noSortAlphabetically": false,
"ignoreCase": true
}
]
}
}