Skip to content

Commit f09c4cc

Browse files
committed
docs: minor improvements
1 parent 4005f5d commit f09c4cc

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

packages/plugins/eslint-plugin-react-dom/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default [
5555
| `no-dangerously-set-innerhtml` | Prevents `DOM element` using `dangerouslySetInnerHTML`. | 🔒 | | |
5656
| `no-dangerously-set-innerhtml-with-children` | Prevents `DOM element` using `dangerouslySetInnerHTML` and `children` at the same time. | ✔️ | | |
5757
| `no-find-dom-node` | Prevents usage of `findDOMNode`. || | |
58-
| `no-missing-button-type` | Enforces explicit `button` type `attribute` for `<button>` elements. | ✔️ | | |
58+
| `no-missing-button-type` | Enforces explicit `type` attribute for `<button>` elements. | ✔️ | | |
5959
| `no-missing-iframe-sandbox` | Enforces explicit `sandbox` attribute for `iframe` elements. | 🔒 | | |
6060
| `no-namespace` | Enforces the absence of a `namespace` in React elements. | ✔️ | | |
6161
| `no-render-return-value` | Prevents usage of the return value of `ReactDOM.render`. || | |

website/pages/docs/rules/dom-no-missing-button-type.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ Correctness.
66

77
## What it does
88

9-
Enforces explicit `button` type `attribute` for `<button>` elements.
9+
Enforces explicit `type` attribute for `<button>` elements.
1010

1111
## Why is this bad?
1212

13-
The `button` element's `type` attribute must be specified explicitly. The default value is `type="submit"` which can easily lead to unexpected behavior, especially when used in a form.
14-
13+
The `type` attribute of the `button` element needs to be specified. The default value is `type="submit"`, which can easily lead to unexpected behavior, especially when used in a form.
1514
## Examples
1615

1716
### Failing

website/pages/docs/rules/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
| [`dom/no-dangerously-set-innerhtml`](dom-no-dangerously-set-innerhtml) | Prevents `DOM element` using `dangerouslySetInnerHTML`. | 🔒 | | |
7373
| [`dom/no-dangerously-set-innerhtml-with-children`](dom-no-dangerously-set-innerhtml-with-children) | Prevents `DOM element` using `dangerouslySetInnerHTML` and `children` at the same time. | ✔️ | | |
7474
| [`dom/no-find-dom-node`](dom-no-find-dom-node) | Prevents usage of `findDOMNode`. || | |
75-
| [`dom/no-missing-button-type`](dom-no-missing-button-type) | Enforces explicit `button` type `attribute` for `<button>` elements. | ✔️ | | |
75+
| [`dom/no-missing-button-type`](dom-no-missing-button-type) | Enforces explicit `type` attribute for `<button>` elements. | ✔️ | | |
7676
| [`dom/no-missing-iframe-sandbox`](dom-no-missing-iframe-sandbox) | Enforces explicit `sandbox` attribute for `iframe` elements. | 🔒 | | |
7777
| [`dom/no-namespace`](dom-no-namespace) | Enforces the absence of a `namespace` in React elements. | ✔️ | | |
7878
| [`dom/no-render-return-value`](no-render-return-value) | Prevents usage of the return value of `ReactDOM.render`. || | |

website/pages/roadmap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
| `no-dangerously-set-innerhtml` | Prevents `DOM element` using `dangerouslySetInnerHTML`. |
6666
| `no-dangerously-set-innerhtml-with-children` | Prevents `DOM element` using `dangerouslySetInnerHTML` and `children` at the same time. |
6767
| `no-find-dom-node` | Prevents usage of `findDOMNode`. |
68-
| `no-missing-button-type` | Enforces explicit `button` type `attribute` for `<button>` elements. |
68+
| `no-missing-button-type` | Enforces explicit `type` attribute for `<button>` elements. |
6969
| `no-missing-iframe-sandbox` | Enforces explicit `sandbox` attribute for `iframe` elements. |
7070
| `no-namespace` | Enforces the absence of a `namespace` in React elements. |
7171
| `no-render-return-value` | Prevents usage of the return value of `ReactDOM.render`. |

0 commit comments

Comments
 (0)