Skip to content

Commit 884faeb

Browse files
committed
docs: improve descriptions of rule no-implicit-key
1 parent 24d9678 commit 884faeb

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
### 🪄 Improvements
44

55
- Optimize error messages.
6+
- Improve descriptions of rule `no-implicit-key`.
7+
- Update `@typescript-eslint`'s packages to `7.7.0`.
68

79
## v1.5.8 (Thu 11 Apr 2024)
810

website/pages/roadmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
| `no-create-ref` | Prevents usage of `createRef`. |
2828
| `no-direct-mutation-state` | Prevents direct mutation of `this.state`. |
2929
| `no-duplicate-key` | Prevents duplicate `key` props on elements in the same array or a list of `children`. |
30-
| `no-implicit-key` | Prevents spreading `key` prop from objects. |
30+
| `no-implicit-key` | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). |
3131
| `no-leaked-conditional-rendering` | Prevents problematic leaked values from being rendered. |
3232
| `no-missing-component-display-name` | Enforces that all components have a `displayName` which can be used in devtools. |
3333
| `no-missing-key` | Prevents missing `key` prop on items in list rendering. |
@@ -117,7 +117,7 @@
117117
| `no-create-ref` | Prevents usage of `createRef`. |
118118
| `no-direct-mutation-state` | Prevents direct mutation of `this.state`. |
119119
| `no-duplicate-key` | Prevents duplicate `key` props on elements in the same array or a list of `children`. |
120-
| `no-implicit-key` | Prevents spreading `key` prop from objects. |
120+
| `no-implicit-key` | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). |
121121
| `no-leaked-conditional-rendering` | Prevents problematic leaked values from being rendered. |
122122
| `no-missing-component-display-name` | Enforces that all components have a `displayName` which can be used in devtools. |
123123
| `no-missing-key` | Prevents missing `key` prop on items in list rendering. |

website/pages/rules/no-implicit-key.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Suspicious.
66

77
## What it does
88

9-
Prevents spreading `key` prop from objects.
9+
Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects).
1010

1111
## Why is this bad?
1212

website/pages/rules/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
| [`no-create-ref`](no-create-ref) | Prevents usage of `createRef`. || | |
4040
| [`no-direct-mutation-state`](no-direct-mutation-state) | Prevents direct mutation of `this.state`. | ✔️ | | |
4141
| [`no-duplicate-key`](no-duplicate-key) | Prevents duplicate `key` props on elements in the same array or a list of `children`. | ✔️ | | |
42-
| [`no-implicit-key`](no-implicit-key) | Prevents spreading `key` prop from objects. | 👀 | | |
42+
| [`no-implicit-key`](no-implicit-key) | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). | 👀 | | |
4343
| [`no-leaked-conditional-rendering`](no-leaked-conditional-rendering) | Prevents problematic leaked values from being rendered. | 👀 | 💭 | |
4444
| [`no-missing-component-display-name`](no-missing-component-display-name) | Enforces that all components have a `displayName` which can be used in devtools. | 🐞 | | |
4545
| [`no-missing-key`](no-missing-key) | Prevents missing `key` prop on items in list rendering. | ✔️ | | |

0 commit comments

Comments
 (0)