-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.86 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
{
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:tailwindcss/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json",
"warnOnUnsupportedTypeScriptVersion": false
},
"rules": {
"import/order": "off",
//! TS
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unused-expressions": "off",
//! try to fix lags issue
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/dot-notation": "off",
//! react
"react-hooks/exhaustive-deps": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/no-array-index-key": "off",
"react/no-unstable-nested-components": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "arrow-function"
}
],
"react-hooks/rules-of-hooks": "off",
"react/no-unescaped-entities": "off",
//! jsx-a11y
"jsx-a11y/label-has-associated-control": "off",
//! tailwindcss
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error",
//! import
"import/prefer-default-export": "off",
//! no
"no-console": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off"
}
}