Skip to content

Commit 378e4ab

Browse files
committed
chore: fix some typos
Signed-off-by: cuithon <[email protected]>
1 parent c3275a4 commit 378e4ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rules/jsx-no-constructed-context-values.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This rule prevents non-stable values (i.e. object identities) from being used as
88

99
One way to resolve this issue may be to wrap the value in a `useMemo()`. If it's a function then `useCallback()` can be used as well.
1010

11-
If you _expect_ the context to be rerun on each render, then consider adding a comment/lint supression explaining why.
11+
If you _expect_ the context to be rerun on each render, then consider adding a comment/lint suppression explaining why.
1212

1313
## Examples
1414

lib/rules/display-name.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module.exports = {
246246
}
247247

248248
if (node.arguments.length > 0 && astUtil.isFunctionLikeExpression(node.arguments[0])) {
249-
// Skip over React.forwardRef declarations that are embeded within
249+
// Skip over React.forwardRef declarations that are embedded within
250250
// a React.memo i.e. React.memo(React.forwardRef(/* ... */))
251251
// This means that we raise a single error for the call to React.memo
252252
// instead of one for React.memo and one for React.forwardRef

0 commit comments

Comments
 (0)