@@ -293,7 +293,7 @@ export default {
293
293
// hook functions.
294
294
const codePathFunctionName = getFunctionName ( codePathNode ) ;
295
295
296
- // This is a valid code path for React hooks if we are direcly in a React
296
+ // This is a valid code path for React hooks if we are directly in a React
297
297
// function component or we are in a hook function.
298
298
const isSomewhereInsideComponentOrHook = isInsideComponentOrHook (
299
299
codePathNode ,
@@ -422,7 +422,7 @@ export default {
422
422
// false positives due to feature flag checks. We're less
423
423
// sensitive to them in classes because hooks would produce
424
424
// runtime errors in classes anyway, and because a use*()
425
- // call in a class, if it works, is unambigously *not* a hook.
425
+ // call in a class, if it works, is unambiguously *not* a hook.
426
426
} else if ( codePathFunctionName ) {
427
427
// Custom message if we found an invalid function name.
428
428
const message =
@@ -476,7 +476,7 @@ export default {
476
476
} ;
477
477
478
478
/**
479
- * Gets tbe static name of a function AST node. For function declarations it is
479
+ * Gets the static name of a function AST node. For function declarations it is
480
480
* easy. For anonymous function expressions it is much harder. If you search for
481
481
* `IsAnonymousFunctionDefinition()` in the ECMAScript spec you'll find places
482
482
* where JS gives anonymous function expressions names. We roughly detect the
0 commit comments