Skip to content

Commit f3502fd

Browse files
committed
docs: improve rule docs
1 parent bcbb636 commit f3502fd

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

packages/eslint-plugin-jsx/src/rules/no-leaked-conditional-rendering.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ function Component({ elements }) {
153153
}
154154
```
155155

156-
## When Not To Use It
157-
158-
If you are working in a typed-codebase which encourages you to always use boolean conditions, this rule can be disabled.
159-
160156
## Further Reading
161157

162158
- [react.dev: Conditional Rendering](https://react.dev/learn/conditional-rendering)

packages/eslint-plugin-react/src/rules/no-missing-button-type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ The `button` element's `type` attribute must be specified explicitly. The defaul
2828
<button type="button">Click me</button>;
2929
```
3030

31-
## When Not To Use It
31+
## Further Reading
3232

33-
If you use only "submit" buttons, you can disable this rule
33+
- [MDN: button - notes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#notes)

packages/eslint-plugin-react/src/rules/no-missing-iframe-sandbox.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ const Component = () => {
5757
};
5858
```
5959

60-
## When not to use
61-
62-
If you don't want to enforce sandbox attribute on iframe elements.
63-
6460
## Further Reading
6561

66-
-[MDN: Element/iframe#attr-sandbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox)
62+
-[MDN: iframe - sandbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attributes)

packages/eslint-plugin-react/src/rules/no-unsafe-iframe-sandbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ const Component = () => {
6060
};
6161
```
6262

63-
## When not to use
63+
## Further Reading
6464

65-
If you don't want to enforce sandbox attribute on iframe elements.
65+
- [MDN: iframe - sandbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attributes)

website/styles/base.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ html[lang] {
5959
font-family: var(--font-family-ui-mono);
6060
}
6161

62+
h1,
63+
h2,
64+
h3,
65+
h4,
66+
h5,
67+
h6 {
68+
font-family: var(--font-family-ui);
69+
}
70+
6271
h1,
6372
h2,
6473
h3 {

0 commit comments

Comments
 (0)