-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
42 lines (42 loc) · 1.14 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
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"perfectionist",
"import",
"unused-imports"
],
"rules": {
"react-hooks/exhaustive-deps": "off",
"no-useless-return": "off",
"react/jsx-curly-brace-presence": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/self-closing-comp": "off",
"lines-around-directive": "off",
"import/newline-after-import": "off",
"spaced-comment": "off",
"eqeqeq": "off",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-redeclare": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "warn",
"perfectionist/sort-imports": ["warn", {
"type": "natural",
"order": "asc",
"groups": [
"react",
"next",
["builtin", "external"],
["parent", "sibling"],
"internal",
["index", "object", "unknown"]
]
}],
"perfectionist/sort-named-imports": "warn"
}
}