Skip to content

Commit 41fc7b8

Browse files
committed
docs: minor improvements
1 parent bbdac92 commit 41fc7b8

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ full: true
8080

8181
## DOM Rules
8282

83-
| Rule || Features | Description |
84-
| :----------------------------------------------------------------------------------------------- | :- | :------------ | :------------------------------------------------------------------------------------ |
85-
| [`no-void-elements-with-children`](./dom-no-void-elements-with-children) | 2️⃣ | `🔍` | Prevents using `children` in void `DOM elements`. |
86-
| [`no-dangerously-set-innerhtml-with-children`](./dom-no-dangerously-set-innerhtml-with-children) | 2️⃣ | `🔍` | Prevents DOM element using `dangerouslySetInnerHTML` and `children` at the same time. |
87-
| [`no-dangerously-set-innerhtml`](./dom-no-dangerously-set-innerhtml) | 1️⃣ | `🔍` | Prevents DOM element using `dangerouslySetInnerHTML`. |
88-
| [`no-find-dom-node`](./dom-no-find-dom-node) | 2️⃣ | `🔍` | Prevents using `findDOMNode`. |
89-
| [`no-missing-button-type`](./dom-no-missing-button-type) | 1️⃣ | `🔍` | Enforces explicit `type` attribute for `button` elements. |
90-
| [`no-missing-iframe-sandbox`](./dom-no-missing-iframe-sandbox) | 1️⃣ | `🔍` | Enforces explicit `sandbox` attribute for `iframe` elements. |
91-
| [`no-namespace`](./dom-no-namespace) | 2️⃣ | `🔍` | Enforces the absence of a `namespace` in React elements. |
92-
| [`no-render-return-value`](./dom-no-render-return-value) | 2️⃣ | `🔍` | Prevents using the return value of `ReactDOM.render`. |
93-
| [`no-script-url`](./dom-no-script-url) | 1️⃣ | `🔍` | Prevents using `javascript:` URLs as the value of attributes. |
94-
| [`no-unknown-property`](./dom-no-unknown-property) | 0️⃣ | `🔍` `🔧` `⚙️` | Prevents using unknown `DOM` property |
95-
| [`no-unsafe-iframe-sandbox`](./dom-no-unsafe-iframe-sandbox) | 1️⃣ | `🔍` | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations. |
96-
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | `🔍` | Prevents using `target="_blank"` without `rel="noreferrer noopener"`. |
83+
| Rule || Features | Description |
84+
| :----------------------------------------------------------------------------------------------- | :- | :------------ | :------------------------------------------------------------------------------------- |
85+
| [`no-void-elements-with-children`](./dom-no-void-elements-with-children) | 2️⃣ | `🔍` | Prevents using `children` in void DOM elements. |
86+
| [`no-dangerously-set-innerhtml-with-children`](./dom-no-dangerously-set-innerhtml-with-children) | 2️⃣ | `🔍` | Prevents DOM elements using `dangerouslySetInnerHTML` and `children` at the same time. |
87+
| [`no-dangerously-set-innerhtml`](./dom-no-dangerously-set-innerhtml) | 1️⃣ | `🔍` | Prevents DOM elements using `dangerouslySetInnerHTML`. |
88+
| [`no-find-dom-node`](./dom-no-find-dom-node) | 2️⃣ | `🔍` | Prevents using `findDOMNode`. |
89+
| [`no-missing-button-type`](./dom-no-missing-button-type) | 1️⃣ | `🔍` | Enforces explicit `type` attribute for `button` elements. |
90+
| [`no-missing-iframe-sandbox`](./dom-no-missing-iframe-sandbox) | 1️⃣ | `🔍` | Enforces explicit `sandbox` attribute for `iframe` elements. |
91+
| [`no-namespace`](./dom-no-namespace) | 2️⃣ | `🔍` | Enforces the absence of a `namespace` in React elements. |
92+
| [`no-render-return-value`](./dom-no-render-return-value) | 2️⃣ | `🔍` | Prevents using the return value of `ReactDOM.render`. |
93+
| [`no-script-url`](./dom-no-script-url) | 1️⃣ | `🔍` | Prevents using `javascript:` URLs as the value of attributes. |
94+
| [`no-unknown-property`](./dom-no-unknown-property) | 0️⃣ | `🔍` `🔧` `⚙️` | Prevents using unknown `DOM` property |
95+
| [`no-unsafe-iframe-sandbox`](./dom-no-unsafe-iframe-sandbox) | 1️⃣ | `🔍` | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations. |
96+
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | `🔍` | Prevents using `target="_blank"` without `rel="noreferrer noopener"`. |
9797

9898
### Deprecated
9999

packages/plugins/eslint-plugin-react-dom/src/rules/no-dangerously-set-innerhtml-with-children.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ react-dom/no-dangerously-set-innerhtml-with-children
2727

2828
## What it does
2929

30-
Disallows DOM element using `children` and `dangerouslySetInnerHTML` at the same time.
30+
Disallows DOM elements using `children` and `dangerouslySetInnerHTML` at the same time.
3131

3232
When using `dangerouslySetInnerHTML`, the content of the DOM element is set from the `__html` property. The content of the DOM element is completely replaced, so the children will not be rendered as expected.
3333

@@ -69,4 +69,4 @@ function MyComponent() {
6969
- [`no-dangerously-set-innerhtml`](./dom-no-dangerously-set-innerhtml)\
7070
Warns when using `dangerouslySetInnerHTML`.
7171
- [`no-void-elements-with-children`](./dom-no-void-elements-with-children)\
72-
Prevents the use of `children` in void `DOM elements`.
72+
Prevents the use of `children` in void DOM elements.

packages/plugins/eslint-plugin-react-dom/src/rules/no-dangerously-set-innerhtml.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ function MyComponent() {
5151
## See Also
5252

5353
- [`no-dangerously-set-innerhtml-with-children`](./dom-no-dangerously-set-innerhtml-with-children)\
54-
Disallows DOM element using `children` and `dangerouslySetInnerHTML` at the same time.
54+
Disallows DOM elements using `children` and `dangerouslySetInnerHTML` at the same time.
5555
- [`no-void-elements-with-children`](./dom-no-void-elements-with-children)\
56-
Prevents the use of `children` in void `DOM elements`.
56+
Prevents the use of `children` in void DOM elements.

packages/plugins/eslint-plugin-react-dom/src/rules/no-void-elements-with-children.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ react-dom/no-void-elements-with-children
2727

2828
## What it does
2929

30-
Prevents the use of `children` in void `DOM elements`.
30+
Prevents the use of `children` in void DOM elements.
3131

3232
Self-closing HTML elements (e.g. `<img />`, `<br />`, `<hr />`) are collectively known as void DOM elements. React will give you a warning if you try to give these children:
3333

@@ -69,4 +69,4 @@ React.createElement('div', { dangerouslySetInnerHTML: { __html: 'HTML' } })
6969
- [`no-dangerously-set-innerhtml`](./dom-no-dangerously-set-innerhtml)\
7070
Warns when using `dangerouslySetInnerHTML`.
7171
- [`no-dangerously-set-innerhtml-with-children`](./dom-no-dangerously-set-innerhtml-with-children)\
72-
Disallows DOM element using `children` and `dangerouslySetInnerHTML` at the same time.
72+
Disallows DOM elements using `children` and `dangerouslySetInnerHTML` at the same time.

0 commit comments

Comments
 (0)