-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
36 lines (36 loc) · 935 Bytes
/
.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
{
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"next",
"next/core-web-vitals",
"prettier"
],
"env": {
"node": true,
"browser": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": ".",
"project": "tsconfig.json"
},
"plugins": ["only-warn"],
"rules": {
"react/function-component-definition": [0],
// this eslint error is a known issue with Next.js - this is a fix to keep eslint happy: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/402
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
]
}
}