-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
115 lines (114 loc) · 2.89 KB
/
.eslintrc
File metadata and controls
115 lines (114 loc) · 2.89 KB
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
{
"env": {
"browser": true,
"es2022": true,
"node": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {}
},
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx"],
"env": {
"jest": true
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json", "./tsconfig.node.json"],
"tsconfigRootDir": "./"
},
"ignorePatterns": ["dist", ".eslintrc"],
"plugins": [
"@typescript-eslint",
"react",
"prettier",
"tailwindcss",
"react-hooks",
"jsx-a11y",
"promise",
"import",
"unicorn",
"testing-library",
"react-refresh"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:unicorn/recommended",
"plugin:react-hooks/recommended",
"plugin:security/recommended",
"plugin:promise/recommended",
"plugin:import/recommended",
"plugin:n/recommended",
"plugin:tailwindcss/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-misused-promises": [
2,
{
"checksVoidReturn": {
"attributes": false
}
}
],
"n/no-missing-import": "off",
"no-unused-vars": "off",
"no-unused-expressions": [
"error",
{
"allowTernary": true
}
],
"jsx-a11y/anchor-is-valid": "warn",
"prettier/prettier": "warn",
"promise/catch-or-return": "error",
"promise/no-new-statics": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/avoid-new": "warn",
"promise/no-callback-in-promise": "warn",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"promise/always-return": "off",
"promise/no-native": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
],
"unicorn/expiring-todo-comments": "off",
"unicorn/filename-case": "off",
"unicorn/no-useless-undefined": "warn",
"unicorn/prevent-abbreviations": "warn"
}
}