-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy path.eslintrc
40 lines (40 loc) · 1.04 KB
/
.eslintrc
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
{
"extends": ["next", "next/core-web-vitals", "prettier"],
"plugins": ["i18next", "jsx-a11y"],
"rules": {
// TODO: Fix these warnings and make them errors by removing these overrides.
"react/no-unescaped-entities": "off",
"@next/next/no-html-link-for-pages": "warn",
"@next/next/no-img-element": "off",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "^useAsync$"
}
],
"jsx-a11y/alt-text": [
2,
{
"elements": ["img", "object", "area", "input[type=\"image\"]"],
"img": ["Image"],
"object": ["Object"],
"area": ["Area"],
"input[type=\"image\"]": ["InputImage"]
}
],
// TODO: Fix existing warnings and make them errors going forward
"i18next/no-literal-string": "warn"
},
"overrides": [
{
"files": [
"components/moderation/**/*.js",
"components/moderation/**/*.ts",
"components/moderation/**/*.tsx"
],
"rules": {
"i18next/no-literal-string": "off"
}
}
]
}