GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixing grammatical errors in error message (#16973) · react/react@5943b1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/eslint-plugin-react-hooks
    • __tests__
      • ESLintRulesOfHooks-test.js
    • src
      • RulesOfHooks.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ function loopError(hook) {
758758
function 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

Collapse file

‎packages/eslint-plugin-react-hooks/src/RulesOfHooks.js‎

Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.