Skip to content

Commit

Permalink
add rule to prevent usage of the react-hooks testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed Jan 6, 2025
1 parent 31d7558 commit 89ee0d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ const RESTRICTED_IMPORTS = [
message:
'Please, use rxjs instead: rxjs/operators is just a subset, unnecessarily duplicating the package import.',
},
{
name: '@testing-library/react-hooks',
message: 'Please use @testing-library/react instead',
},
];

module.exports = {
Expand Down

0 comments on commit 89ee0d3

Please sign in to comment.