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) {
758758function functionError ( hook , fn ) {
759759 return {
760760 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.' ,
763763 } ;
764764}
765765
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ export default {
428428 const message =
429429 `React Hook "${ context . getSource ( hook ) } " is called in ` +
430430 `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 ' +
432432 'React Hook function.' ;
433433 context . report ( { node : hook , message} ) ;
434434 } else if ( codePathNode . type === 'Program' ) {
You can’t perform that action at this time.
0 commit comments