Skip to content

Commit 4dab3af

Browse files
feat: upgrade react-hooks/incompatible-library to error
1 parent 754a792 commit 4dab3af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

recommended.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ module.exports = {
3737
],
3838
},
3939
],
40+
/**
41+
* Set as "warn" by default, we want to error on incompatible library APIs for dev visibility (to require // eslint-disable)
42+
*
43+
* {@link https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library docs}
44+
*/
45+
"react-hooks/incompatible-library": "error",
4046
// don't force .jsx extension
4147
"react/jsx-filename-extension": "off",
4248
// In TS you must use the Fragment syntax instead of the shorthand

0 commit comments

Comments
 (0)