-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
76 lines (76 loc) · 2.06 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json",
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"prettier/prettier": ["error", { "usePrettierrc": true, "endOfLine": "auto" }],
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"react/state-in-constructor": "off",
"react/static-property-placament": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"no-param-reassign": "off",
"no-console": "off",
"jsx-a11y/anchor-is-valid": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-useless-escape": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": ["Label"],
"labelAttributes": ["label"],
"controlComponents": ["Input"],
"depth": 3
}
],
"react/no-unescaped-entities": "off",
"react/no-array-index-key": "off",
"react/function-component-definition": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"prefer-destructuring": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/anchor-has-content": "off",
"no-unsafe-optional-chaining": "off",
"no-nested-ternary": "off",
"radix": "off",
"no-return-assign": "off",
"no-restricted-globals": "off",
"no-plusplus": "off",
"import/no-named-default": "off",
"react/destructuring-assignment": "off",
"array-callback-return": "off",
"consistent-return": "off",
"react/no-danger": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/button-has-type": "off",
"no-underscore-dangle": "off",
"react-hooks/exhaustive-deps": "off"
}
}