Skip to content

Commit 25bf57a

Browse files
committed
fix: update dependencies and improve test structure
1 parent 671f70c commit 25bf57a

27 files changed

Lines changed: 284 additions & 262 deletions

.eslintrc.json

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"eslint:recommended",
1010
"plugin:react/recommended",
1111
"plugin:react-hooks/recommended",
12+
"plugin:import/recommended",
1213
"plugin:prettier/recommended"
1314
],
1415
"parserOptions": {
@@ -21,21 +22,78 @@
2122
"settings": {
2223
"react": {
2324
"version": "detect"
25+
},
26+
"import/resolver": {
27+
"node": {
28+
"extensions": [".js", ".jsx"]
29+
}
2430
}
2531
},
26-
"plugins": ["react", "react-hooks"],
32+
"plugins": ["react", "react-hooks", "react-refresh", "import"],
2733
"rules": {
28-
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
34+
"no-unused-vars": [
35+
"warn",
36+
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
37+
],
2938
"no-console": "off",
39+
40+
"eqeqeq": ["error", "always"],
41+
"no-var": "error",
42+
"prefer-const": ["warn", { "destructuring": "all" }],
43+
"no-implicit-coercion": "warn",
44+
3045
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
3146
"semi": ["error", "always"],
47+
3248
"react/react-in-jsx-scope": "off",
3349
"react/prop-types": "off",
50+
"react/jsx-uses-react": "off",
51+
"react/jsx-uses-vars": "error",
52+
53+
"react-hooks/rules-of-hooks": "error",
54+
"react-hooks/exhaustive-deps": "warn",
55+
56+
"react-refresh/only-export-components": [
57+
"warn",
58+
{ "allowConstantExport": true }
59+
],
60+
3461
"prettier/prettier": [
3562
"warn",
3663
{
3764
"endOfLine": "auto"
3865
}
66+
],
67+
68+
"import/order": [
69+
"warn",
70+
{
71+
"groups": [
72+
"builtin",
73+
"external",
74+
"internal",
75+
["parent", "sibling"],
76+
"index"
77+
],
78+
"newlines-between": "always"
79+
}
80+
],
81+
82+
"import/no-duplicates": "warn",
83+
"import/no-unresolved": [
84+
"error",
85+
{
86+
"ignore": [
87+
"\\.css$",
88+
"\\.scss$",
89+
"\\.sass$",
90+
"\\.svg$",
91+
"\\.png$",
92+
"\\.jpg$",
93+
"\\.jpeg$",
94+
"\\.gif$"
95+
]
96+
}
3997
]
4098
}
4199
}

0 commit comments

Comments
 (0)