File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/eslint-plugin-react-hooks Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1705,25 +1705,25 @@ const tests = {
1705
1705
{
1706
1706
message :
1707
1707
'React Hook useEffect will crash when called with no arguments. ' +
1708
- 'Did you forget to pass a function and an array of dependencies ?' ,
1708
+ 'Did you forget to pass a callback to the hook ?' ,
1709
1709
suggestions : undefined ,
1710
1710
} ,
1711
1711
{
1712
1712
message :
1713
1713
'React Hook useLayoutEffect will crash when called with no arguments. ' +
1714
- 'Did you forget to pass a function and an array of dependencies ?' ,
1714
+ 'Did you forget to pass a callback to the hook ?' ,
1715
1715
suggestions : undefined ,
1716
1716
} ,
1717
1717
{
1718
1718
message :
1719
1719
'React Hook useCallback will crash when called with no arguments. ' +
1720
- 'Did you forget to pass a function and an array of dependencies ?' ,
1720
+ 'Did you forget to pass a callback to the hook ?' ,
1721
1721
suggestions : undefined ,
1722
1722
} ,
1723
1723
{
1724
1724
message :
1725
1725
'React Hook useMemo will crash when called with no arguments. ' +
1726
- 'Did you forget to pass a function and an array of dependencies ?' ,
1726
+ 'Did you forget to pass a callback to the hook ?' ,
1727
1727
suggestions : undefined ,
1728
1728
} ,
1729
1729
] ,
Original file line number Diff line number Diff line change @@ -1127,7 +1127,7 @@ export default {
1127
1127
node : reactiveHook ,
1128
1128
message :
1129
1129
`React Hook ${ reactiveHookName } will crash when called with no arguments. ` +
1130
- `Did you forget to pass a function and an array of dependencies ?` ,
1130
+ `Did you forget to pass a callback to the hook ?` ,
1131
1131
} ) ;
1132
1132
return ;
1133
1133
}
You can’t perform that action at this time.
0 commit comments