-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
74 lines (74 loc) · 1.87 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
{
"extends": [
"airbnb",
"airbnb-typescript",
"next/core-web-vitals",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"ignorePatterns": "*.config.js",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"quotes": "off",
"camelcase": "off",
"no-plusplus": "off",
"consistent-return": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"arrow-body-style": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/button-has-type": "off",
"react/require-default-props": "off",
"react/self-closing-comp": "off",
"react/no-unused-prop-types": "warn",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"no-restricted-syntax": "off",
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}