Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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