-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
100 lines (100 loc) · 1.99 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"extends": [
"eslint:recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js"],
"parser": "@typescript-eslint/parser"
}
],
"rules": {
"no-trailing-spaces": "error",
"max-len": [
2,
{
"code": 150,
"comments": 100
}
],
"react/jsx-max-props-per-line": [
"error",
{
"maximum": {
"single": 2,
"multi": 1
}
}
],
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-wrap-multilines": "error",
"semi": [2, "always"],
"indent": ["error", 4],
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-double"],
"comma-dangle": ["error", "never"],
"import/no-unresolved": "error",
"import/no-absolute-path": "error",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
[
"parent",
"sibling"
],
"index",
"unknown"
],
"newlines-between": "always",
"alphabetize": {
"order": "desc",
"caseInsensitive": true
}
}
],
"react/function-component-definition": [
2,
{
"namedComponents": "function-declaration"
}
],
"no-var": "error",
"prefer-const": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-unused-vars": "error",
"react/jsx-curly-spacing": [
2,
{
"when": "never",
"children": true
}
],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": [
"next/link"
],
"specialLink": [
"hrefLeft",
"hrefRight"
],
"aspects": [
"invalidHref",
"preferButton"
]
}
]
}
}