Skip to content

Commit

Permalink
typos fixed (#21955)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinansonmez authored Aug 3, 2021
1 parent e3049bb commit 8a37b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions packages/react-devtools-extensions/src/astUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit 8a37b0e

Please sign in to comment.