-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
89 lines (89 loc) · 2.42 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
{
"plugins": [],
"extends": ["next", "next/core-web-vitals"],
"settings": {
"next": {
"rootDir": "."
}
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "tsconfig.json"
},
"rules": {
"camelcase": "off",
"import/prefer-default-export": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unused-prop-types": "off",
"react/require-default-props": "off",
"import/extensions": "off",
"quotes": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"@next/next/no-html-link-for-pages": ["error", "."]
},
"overrides": [
{
"files": "**/*.+(ts|tsx)",
"parser": "@typescript-eslint/parser",
"plugins": ["testing-library", "jest-dom"],
"extends": ["prettier", "plugin:jest-dom/recommended"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"max-len": ["warn",
{
"code": 120,
"ignorePattern": "/className=\".+\"/gm",
"ignoreTemplateLiterals": true,
"ignoreStrings": true,
"ignoreComments": true
}],
"sort-keys": "error",
"react/destructuring-assignment": "warn",
"react/display-name": "warn",
"react/prop-types": "warn",
"react/sort-prop-types": "warn",
"react/no-unescaped-entities": "off",
"react/jsx-sort-props": [
2,
{
"callbacksLast": true,
"ignoreCase": false,
"shorthandLast": true
}
]
}
}
],
"ignorePatterns": [
"jest.config.ts",
"__mocks__",
"next.config.js",
"tailwind.config.js",
"postcss.config.js",
"next-sitemap.js",
"sentry.client.config.js",
"sentry.server.config.js"
]
}