-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
107 lines (107 loc) · 3.61 KB
/
.eslintrc
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true
},
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier"],
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"next/core-web-vitals"
],
"rules": {
"jsx-a11y/anchor-is-valid": 0,
"no-irregular-whitespace": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"jsx-a11y/tabindex-no-positive": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/media-has-caption": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{ "functions": false, "classes": true, "variables": false }
],
"no-use-before-define": "off",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/no-var-requires": "off",
"no-restricted-syntax": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"prefer-destructuring": "off",
"react/jsx-boolean-value": "off",
"dot-notation": "off",
"label-has-for": "off",
"import/named": "off",
"react/function-component-definition": ["error", {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"comma-dangle": ["error", "always-multiline"],
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"no-shadow": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off",
"react/no-multi-comp": "off",
"react/no-unescaped-entities": "off",
"no-nested-ternary": "off",
"lines-between-class-members": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-return-assign": "off",
"consistent-return": "off",
"no-undef": "off",
"react/jsx-no-undef": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"import/no-cycle": "off",
"no-continue": "off",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"react/jsx-key": [1, { "checkFragmentShorthand": false }],
"import/extensions": 0,
"react/display-name": 0,
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "all",
"semi": true
}
]
}
}