File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default tseslint.config([
1818 tseslint . configs . stylisticTypeChecked ,
1919 prettierRecommended ,
2020 ...pluginQuery . configs [ "flat/recommended" ] ,
21- reactHooks . configs [ "recommended-latest" ] ,
21+ reactHooks . configs . flat [ "recommended-latest" ] ,
2222 reactRefresh . configs . vite ,
2323 ] ,
2424 languageOptions : {
@@ -33,7 +33,10 @@ export default tseslint.config([
3333 react,
3434 } ,
3535 rules : {
36- ...reactHooks . configs . recommended . rules ,
36+ ...reactHooks . configs . flat . recommended . rules ,
37+ // Disable new react-hooks v7 rules that require significant refactoring
38+ "react-hooks/set-state-in-effect" : "off" ,
39+ "react-hooks/incompatible-library" : "off" ,
3740 "react-refresh/only-export-components" : [ "warn" , { allowConstantExport : true } ] ,
3841 ...react . configs . recommended . rules ,
3942 ...react . configs [ "jsx-runtime" ] . rules ,
You can’t perform that action at this time.
0 commit comments