From ca3168c8aeb702d457c0819efdff4d91bcdda98a Mon Sep 17 00:00:00 2001 From: Sinan Chaush Date: Sat, 24 Jul 2021 22:33:23 +0200 Subject: [PATCH] typos fixed --- packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js | 2 +- packages/react-devtools-extensions/src/astUtils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js index d40aaba421d30..96e7adc646c8d 100644 --- a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js +++ b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js @@ -753,7 +753,7 @@ export default { if ( isUsedOutsideOfHook && construction.type === 'Variable' && - // Objects may be mutated ater construction, which would make this + // Objects may be mutated after construction, which would make this // fix unsafe. Functions _probably_ won't be mutated, so we'll // allow this fix for them. depType === 'function' diff --git a/packages/react-devtools-extensions/src/astUtils.js b/packages/react-devtools-extensions/src/astUtils.js index 87a4f47dcaeab..4b4d87c4f630c 100644 --- a/packages/react-devtools-extensions/src/astUtils.js +++ b/packages/react-devtools-extensions/src/astUtils.js @@ -41,7 +41,7 @@ function checkNodeLocation( } if (column !== null) { - // Column numbers are representated differently between tools/engines. + // Column numbers are represented differently between tools/engines. // Error.prototype.stack columns are 1-based (like most IDEs) but ASTs are 0-based. // // In practice this will probably never matter, @@ -359,7 +359,7 @@ function isPotentialHookDeclaration(path: NodePath): boolean { return false; } -/// Check whether 'node' is hook decalration of form useState(0); OR React.useState(0); +/// Check whether 'node' is hook declaration of form useState(0); OR React.useState(0); function isReactFunction(node: Node, functionName: string): boolean { return ( node.name === functionName ||