-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
126 lines (126 loc) · 3.41 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"root": true,
"env": {
"es6": true,
"shared-node-browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"next/core-web-vitals"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@next/next/no-img-element": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^ignored",
"varsIgnorePattern": "^ignored"
}
],
"@typescript-eslint/semi": ["error"],
"arrow-spacing": "error",
"block-spacing": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": ["error", "last"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"indent": [
"error",
2,
{
"flatTernaryExpressions": true,
"MemberExpression": 1,
"SwitchCase": 1
}
],
"jsx-a11y/alt-text": "off",
"key-spacing": "error",
"linebreak-style": ["error", "unix"],
"max-len": [
"warn",
{
"code": 120,
"ignoreTemplateLiterals": true,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreStrings": true,
"ignoreUrls": true
}
],
"no-console": "error",
"no-empty-function": "off",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-restricted-imports": [
"error",
{
"patterns": [
"@mui/*/*/*",
"!@mui/material/test-utils/*",
"@material-ui/*/*/*"
]
}
],
"no-trailing-spaces": "error",
"no-unexpected-multiline": "error",
"no-useless-concat": "error",
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"quotes": [
"error",
"single",
{ "allowTemplateLiterals": true }
],
"react/display-name": 0,
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "warn",
"react/jsx-closing-bracket-location": [
"error",
{
"selfClosing": "tag-aligned",
"nonEmpty": "after-props"
}
],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-tag-spacing": "error",
"react/jsx-wrap-multilines": [
"error",
{
"return": "parens-new-line",
"prop": "parens-new-line",
"logical": "parens-new-line",
"condition": "parens-new-line",
"arrow": "parens-new-line",
"assignment": "parens-new-line"
}
],
"react/no-unknown-property": ["error", { "ignore": ["css", "jsx"] }],
"semi": "off",
"semi-spacing": ["error", { "before": false }],
"use-isnan": "error"
}
}