Skip to content

Commit ec4b81d

Browse files
committed
Prettify ESLintRulesOfHooks-test
1 parent d374f9c commit ec4b81d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,7 @@ function functionError(hook, fn) {
916916
`React Hook "${hook}" is called in function "${fn}" that is neither ` +
917917
'a React function component nor a custom React Hook function.' +
918918
' React component names must start with an uppercase letter.' +
919-
' React Hook names must start with the word "use".'
920-
,
919+
' React Hook names must start with the word "use".',
921920
};
922921
}
923922

0 commit comments

Comments
 (0)