Skip to content

Commit

Permalink
Prettify ESLintRulesOfHooks-test
Browse files Browse the repository at this point in the history
  • Loading branch information
callmetwan committed Feb 13, 2021
1 parent d374f9c commit ec4b81d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,7 @@ function functionError(hook, fn) {
`React Hook "${hook}" is called in function "${fn}" that is neither ` +
'a React function component nor a custom React Hook function.' +
' React component names must start with an uppercase letter.' +
' React Hook names must start with the word "use".'
,
' React Hook names must start with the word "use".',
};
}

Expand Down

0 comments on commit ec4b81d

Please sign in to comment.