Skip to content

Commit c68c76d

Browse files
committedMay 5, 2025
docs: minor updates
1 parent 32a31dd commit c68c76d

File tree

4 files changed

+29
-20
lines changed

4 files changed

+29
-20
lines changed
 

‎apps/website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"@eslint-react/eff": "workspace:*",
1515
"bsky-react-post": "^0.1.7",
1616
"clsx": "^2.1.1",
17-
"fumadocs-core": "15.2.13",
17+
"fumadocs-core": "15.2.14",
1818
"fumadocs-docgen": "2.0.0",
1919
"fumadocs-mdx": "11.6.2",
2020
"fumadocs-twoslash": "3.1.1",
2121
"fumadocs-typescript": "4.0.3",
22-
"fumadocs-ui": "15.2.13",
22+
"fumadocs-ui": "15.2.14",
2323
"lucide-react": "^0.507.0",
2424
"next": "^15.3.1",
2525
"next-view-transitions": "^0.3.4",

‎packages/plugins/eslint-plugin-react-x/src/rules/jsx-key-before-spread.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ react-x/jsx-key-before-spread
2525

2626
Enforces that the `key` attribute is placed before the spread attribute in JSX elements.
2727

28-
When using the JSX automatic runtime, `key` is a special attribute in the JSX transform. See the [Babel repl](https://babeljs.io/repl#?browsers=last%202%20chrome%20versions&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=DwEwlgbgBA1gpgTwLwCICMKoG8B0eAOATgPb4DOAvlAPQB8A3AFCiTZ45GmWyKoBMmOkxbR4yFAGZMAYwA2AQzJkAcvIC2cVIIbNw0OYpXrNKTGNRSaDIA&forceAllTransforms=false&modules=false&shippedProposals=false&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=react&prettier=false&targets=&version=7.27.0&externalPlugins=&assumptions=%7B%7D) and [TypeScript playground](https://www.typescriptlang.org/play/?target=99&jsx=4#code/DwEwlgbgBA1gpgTwLwCICMKoG8B0eAOATgPb4DOAvlAPQB8A3ALABQok2eORplsiqAJkx0mrcNHjIUAZkwBjADYBDMmQBySgLZxUwhizbRFK9Vp0pMk1ABY99IA)
28+
When using the JSX automatic runtime, `key` is a special attribute in the JSX transform. See the [Babel repl](https://babeljs.io/repl#?browsers=last%202%20chrome%20versions&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=DwEwlgbgBA1gpgTwLwCICMKoG8B0eAOATgPb4DOAvlAPQB8A3AFCiTZ45GmWyKoBMmOkxbR4yFAGZMAYwA2AQzJkAcvIC2cVIIbNw0OYpXrNKTGNRSaDIA&forceAllTransforms=false&modules=false&shippedProposals=false&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=react&prettier=false&targets=&version=7.27.0&externalPlugins=&assumptions=%7B%7D) and [TypeScript playground](https://www.typescriptlang.org/play/?target=99&jsx=4#code/DwEwlgbgBA1gpgTwLwCICMKoG8B0eAOATgPb4DOAvlAPQB8A3ALABQok2eORplsiqAJkx0mrcNHjIUAZkwBjADYBDMmQBySgLZxUwhizbRFK9Vp0pMk1ABY99IA).
2929

3030
If the `key` prop is _before_ any spread props, it is passed as the `key` argument of the `_jsx` / `_jsxs` / `_jsxDev` function. But if the `key` prop is _after_ spread props, The compiler uses `createElement` instead and passes `key` as a regular prop.
3131

@@ -49,3 +49,10 @@ If the `key` prop is _before_ any spread props, it is passed as the `key` argume
4949

5050
- [Rule source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-key-before-spread.ts)
5151
- [Test source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-key-before-spread.spec.ts)
52+
53+
---
54+
55+
## See Also
56+
57+
- [`no-implicit-key`](./no-implicit-key)\
58+
Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).

‎packages/plugins/eslint-plugin-react-x/src/rules/no-implicit-key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ function MyComponent({ items }: MyComponentProps) {
8787

8888
## See Also
8989

90+
- [`jsx-key-before-spread`](./jsx-key-before-spread)\
91+
Enforces that the `key` attribute is placed before the spread attribute in JSX elements.
9092
- [`no-missing-key`](./no-missing-key)\
9193
Prevents missing `key` on items in list rendering.
9294
- [`no-duplicate-key`](./no-duplicate-key)\

‎pnpm-lock.yaml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)