File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/eslint-plugin-react-hooks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -758,8 +758,8 @@ function loopError(hook) {
758
758
function functionError ( hook , fn ) {
759
759
return {
760
760
message :
761
- `React Hook "${ hook } " is called in function "${ fn } " which is neither ` +
762
- 'a React function component or a custom React Hook function.' ,
761
+ `React Hook "${ hook } " is called in function "${ fn } " that is neither ` +
762
+ 'a React function component nor a custom React Hook function.' ,
763
763
} ;
764
764
}
765
765
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ export default {
428
428
const message =
429
429
`React Hook "${ context . getSource ( hook ) } " is called in ` +
430
430
`function "${ context . getSource ( codePathFunctionName ) } " ` +
431
- 'which is neither a React function component or a custom ' +
431
+ 'that is neither a React function component nor a custom ' +
432
432
'React Hook function.' ;
433
433
context . report ( { node : hook , message} ) ;
434
434
} else if ( codePathNode . type === 'Program' ) {
You can’t perform that action at this time.
0 commit comments