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 @@ -1704,25 +1704,25 @@ const tests = {
1704
1704
errors : [
1705
1705
{
1706
1706
message :
1707
- 'React Hook useEffect will crash when called with no arguments . ' +
1707
+ 'React Hook useEffect requires an effect callback . ' +
1708
1708
'Did you forget to pass a callback to the hook?' ,
1709
1709
suggestions : undefined ,
1710
1710
} ,
1711
1711
{
1712
1712
message :
1713
- 'React Hook useLayoutEffect will crash when called with no arguments . ' +
1713
+ 'React Hook useLayoutEffect requires an effect callback . ' +
1714
1714
'Did you forget to pass a callback to the hook?' ,
1715
1715
suggestions : undefined ,
1716
1716
} ,
1717
1717
{
1718
1718
message :
1719
- 'React Hook useCallback will crash when called with no arguments . ' +
1719
+ 'React Hook useCallback requires an effect callback . ' +
1720
1720
'Did you forget to pass a callback to the hook?' ,
1721
1721
suggestions : undefined ,
1722
1722
} ,
1723
1723
{
1724
1724
message :
1725
- 'React Hook useMemo will crash when called with no arguments . ' +
1725
+ 'React Hook useMemo requires an effect callback . ' +
1726
1726
'Did you forget to pass a callback to the hook?' ,
1727
1727
suggestions : undefined ,
1728
1728
} ,
Original file line number Diff line number Diff line change @@ -1126,7 +1126,7 @@ export default {
1126
1126
reportProblem ( {
1127
1127
node : reactiveHook ,
1128
1128
message :
1129
- `React Hook ${ reactiveHookName } will crash when called with no arguments . ` +
1129
+ `React Hook ${ reactiveHookName } requires an effect callback . ` +
1130
1130
`Did you forget to pass a callback to the hook?` ,
1131
1131
} ) ;
1132
1132
return ;
You can’t perform that action at this time.
0 commit comments