-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
50 lines (50 loc) · 1.24 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
{
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "prettier", "next", "next/core-web-vitals"],
"plugins": ["prettier", "node", "@typescript-eslint", "import"],
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "error",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off",
"arrow-body-style": "off",
"react/jsx-props-no-spreading": "off",
"import/extensions": "off",
"no-shadow": "off",
"react/require-default-props": "off",
"jsx-a11y/control-has-associated-label": "off",
"camelcase": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"]
}
],
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/function-component-definition": [
2,
{
"namedComponents": ["arrow-function", "function-declaration"],
"unnamedComponents": "arrow-function"
}
]
},
"ignorePatterns": "src/**/*.d.ts",
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"no-undef": "off"
}
}
]
}