-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
122 lines (122 loc) · 3.38 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": [
"next/core-web-vitals",
"plugin:tailwindcss/recommended",
"plugin:react/jsx-runtime",
"airbnb",
"airbnb-typescript"
],
"plugins": [
"unused-imports"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unused-prop-types": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/function-component-definition": "off",
"react/destructuring-assignment": "off",
"no-param-reassign": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/spac": "off",
"jsx-a11y/no-static-element-interactions": "off",
"linebreak-style": "off",
"import/no-webpack-loader-syntax": "off",
"@typescript-eslint/object-curly-spacing": "warn",
"no-trailing-spaces": "warn",
"no-multi-spaces": "warn",
"key-spacing": "warn",
"react/jsx-indent": "warn",
"react/jsx-tag-spacing": "warn",
"@typescript-eslint/space-infix-ops": "warn",
"@typescript-eslint/quotes": "warn",
"react/jsx-closing-tag-location": "warn",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-props-no-multi-spaces": "warn",
"@typescript-eslint/comma-spacing": "warn",
"space-in-parens": "warn",
"react/jsx-one-expression-per-line": "warn",
"object-curly-newline": "warn",
"@typescript-eslint/comma-dangle": "warn",
"@typescript-eslint/semi": "warn",
"@typescript-eslint/indent": "warn",
"no-multiple-empty-lines": "warn",
"react/jsx-curly-brace-presence": "warn",
"import/order": "warn",
"react/self-closing-comp": "warn",
"@typescript-eslint/keyword-spacing": "warn",
"arrow-spacing": "warn",
"semi-spacing": "warn",
"arrow-parens": "warn",
"react/jsx-first-prop-new-line": "warn",
"react/jsx-curly-spacing": "warn",
"react/jsx-key": "error",
"react-hooks/exhaustive-deps": [
"error",
{
"additionalHooks": "(useCancelableEffect)"
}
],
"comma-style": "warn",
"react/jsx-max-props-per-line": "warn",
"array-bracket-spacing": "warn",
"@typescript-eslint/space-before-blocks": "warn",
"prefer-template": "warn",
"no-whitespace-before-property": "warn",
"react/jsx-wrap-multilines": "warn",
"nonblock-statement-body-position": "warn",
"padded-blocks": "warn",
"curly": "warn",
"no-extra-parens": "warn",
"max-len": [
"error",
{
"code": 200,
"tabWidth": 1
}
],
"no-console": [
"warn",
{
"allow": [
"couunt",
"warn",
"error"
]
}
],
"react/jsx-no-useless-fragment": [
"error",
{
"allowExpressions": true
}
],
"tailwindcss/no-custom-classname": [
"warn",
{
"whitelist": [
"rs-.+"
]
}
],
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}