Skip to content

Commit 83b8ea4

Browse files
sinansonmezJuan Tejada
authored and
Juan Tejada
committed
typos fixed (facebook#21955)
1 parent 743ffcf commit 83b8ea4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ export default {
753753
if (
754754
isUsedOutsideOfHook &&
755755
construction.type === 'Variable' &&
756-
// Objects may be mutated ater construction, which would make this
756+
// Objects may be mutated after construction, which would make this
757757
// fix unsafe. Functions _probably_ won't be mutated, so we'll
758758
// allow this fix for them.
759759
depType === 'function'

packages/react-devtools-extensions/src/astUtils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function checkNodeLocation(
4242
}
4343

4444
if (column !== null) {
45-
// Column numbers are representated differently between tools/engines.
45+
// Column numbers are represented differently between tools/engines.
4646
// Error.prototype.stack columns are 1-based (like most IDEs) but ASTs are 0-based.
4747
//
4848
// In practice this will probably never matter,
@@ -481,7 +481,7 @@ function isPotentialHookDeclaration(path: NodePath): boolean {
481481
return false;
482482
}
483483

484-
/// Check whether 'node' is hook decalration of form useState(0); OR React.useState(0);
484+
/// Check whether 'node' is hook declaration of form useState(0); OR React.useState(0);
485485
function isReactFunction(node: Node, functionName: string): boolean {
486486
return (
487487
node.name === functionName ||

0 commit comments

Comments
 (0)