-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
47 lines (47 loc) · 1.35 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
{
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "prettier", "next", "next/core-web-vitals", "plugin:cypress/recommended"],
"plugins": ["prettier", "node", "@typescript-eslint", "import", "jsdoc"],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_$" }],
"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",
"jsx-a11y/label-has-associated-control": [2, { "assert": "either" }],
"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",
"**/public/sw.js",
"**/public/workbox-*.js",
"**/public/worker-*.js"
]
}