File tree 2 files changed +3
-3
lines changed
eslint-plugin-react-hooks/src
react-devtools-extensions/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ export default {
753
753
if (
754
754
isUsedOutsideOfHook &&
755
755
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
757
757
// fix unsafe. Functions _probably_ won't be mutated, so we'll
758
758
// allow this fix for them.
759
759
depType === 'function'
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function checkNodeLocation(
42
42
}
43
43
44
44
if ( column !== null ) {
45
- // Column numbers are representated differently between tools/engines.
45
+ // Column numbers are represented differently between tools/engines.
46
46
// Error.prototype.stack columns are 1-based (like most IDEs) but ASTs are 0-based.
47
47
//
48
48
// In practice this will probably never matter,
@@ -481,7 +481,7 @@ function isPotentialHookDeclaration(path: NodePath): boolean {
481
481
return false ;
482
482
}
483
483
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);
485
485
function isReactFunction ( node : Node , functionName : string ) : boolean {
486
486
return (
487
487
node . name === functionName ||
You can’t perform that action at this time.
0 commit comments