Skip to content

Commit abe1924

Browse files
committed
docs: minor fixes
1 parent 0fdc3c8 commit abe1924

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/website/content/docs/rules/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ full: true
8989
| [`no-unknown-property`](./dom-no-unknown-property) | 1️⃣ | `🔍` `🔧` `⚙️` | Prevents using unknown `DOM` property | |
9090
| [`no-unsafe-iframe-sandbox`](./dom-no-unsafe-iframe-sandbox) | 1️⃣ | `🔍` | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations. | |
9191
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | `🔍` | Prevents using `target="_blank"` without `rel="noreferrer noopener"`. | |
92-
| [`no-use-form-state`](./dom-no-use-form-state) | 2️⃣ | `🔍` `🔄` | Replaces the usages of `useFormState` to use `useActionState`. | >=19.0.0 |
92+
| [`no-use-form-state`](./dom-no-use-form-state) | 2️⃣ | `🔍` `🔄` | Replaces the usages of `useFormState` with `useActionState`. | >=19.0.0 |
9393
| [`no-void-elements-with-children`](./dom-no-void-elements-with-children) | 2️⃣ | `🔍` | Prevents using `children` in void DOM elements. | |
9494

9595
## Web API Rules

packages/plugins/eslint-plugin-react-dom/src/rules/no-flush-sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default createRule<[], MessageID>({
1717
meta: {
1818
type: "problem",
1919
docs: {
20-
description: "warns against using `flushSync`",
20+
description: "disallow 'flushSync'",
2121
[Symbol.for("rule_features")]: RULE_FEATURES,
2222
},
2323
messages: {

packages/plugins/eslint-plugin-react-dom/src/rules/no-use-form-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ react-dom/no-use-form-state
2727

2828
## What it does
2929

30-
Replaces the usages of `useFormState` to use `useActionState`.
30+
Replaces the usages of `useFormState` with `useActionState`.
3131

3232
An **safe** codemod is available for this rule.
3333

packages/plugins/eslint-plugin-react-dom/src/rules/no-use-form-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default createRule<[], MessageID>({
2222
meta: {
2323
type: "problem",
2424
docs: {
25-
description: "replace usages of 'ReactDom.render()' with 'createRoot(node).render()'",
25+
description: "replace the usages of 'useFormState' with 'useActionState'",
2626
[Symbol.for("rule_features")]: RULE_FEATURES,
2727
},
2828
fixable: "code",

0 commit comments

Comments
 (0)