/
.eslintrc.json
executable file
·45 lines (45 loc) · 1.03 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
{
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"next/core-web-vitals",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"no-unused-vars": "off",
"max-len": [
"warn",
{
"code": 130,
"ignoreUrls": true
}
],
"no-unreachable": "error",
"@typescript-eslint/no-namespace": "off",
"no-console": [ "warn", {"allow": ["warn", "info", "error"]} ],
"@typescript-eslint/no-unused-vars": ["warn"],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "hrefLeft", "hrefRight" ],
"aspects": [ "invalidHref", "preferButton" ]
}],
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration",
"message": "Don't declare enums"
}
]
},
"settings": {
"react": {
"verstion": "detect"
}
}
}