You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
## v1.22.0 (Draft)
2
+
3
+
### 🪄 Improvements
4
+
5
+
- refactor(plugins/dom): rename `no-children-in-void-dom-elements` to `no-void-elements-with-children` (the previous rule will still be available until the next major update to avoid breaking changes).
6
+
1
7
## v1.21.0 (Fri 20 Dec 2024)
2
8
3
9
### ✨ New
@@ -6,7 +12,7 @@
6
12
7
13
### 🪄 Improvements
8
14
9
-
- refactor(plugins/hooks-extra): deprecate rule `hooks-extra/no-redundant-custom-hook` in favor of `hooks-extra/no-useless-custom-hooks` (the previous rule will still be available until the next major update to avoid breaking changes).
15
+
- refactor(plugins/hooks-extra): deprecate rule `no-redundant-custom-hook` in favor of `no-useless-custom-hooks` (the previous rule will still be available until the next major update to avoid breaking changes).
10
16
11
17
### 📝 Changes in Rule implementation
12
18
@@ -66,7 +72,7 @@ function useAuth() {
66
72
67
73
### 🪄 Improvements
68
74
69
-
- perf(plugins/dom): improve performance of `no-children-in-void-dom-elements` by @Rel1cx
75
+
- perf(plugins/dom): improve performance of `no-void-elements-with-children` by @Rel1cx
70
76
71
77
## v1.17.3 (Tue 3 Dec 2024)
72
78
@@ -766,7 +772,7 @@ function useAuth() {
766
772
### 🐞 Fixes
767
773
768
774
- Fix rule `react-dom/no-namespace` not renamed in v1.0.0.
769
-
- Fix rule `react-dom/no-children-in-void-dom-elements` not renamed in v1.0.0.
775
+
- Fix rule `react-dom/no-void-elements-with-children` not renamed in v1.0.0.
770
776
771
777
### 🪄 Improvements
772
778
@@ -788,7 +794,7 @@ function useAuth() {
788
794
789
795
#### All DOM related rules are moved to `react-dom` namespace
790
796
791
-
- Rename rule `react/no-children-in-void-dom-elements` to `react-dom/no-children-in-void-dom-elements`.
797
+
- Rename rule `react/no-void-elements-with-children` to `react-dom/no-void-elements-with-children`.
792
798
- Rename rule `react/no-dangerously-set-innerhtml-with-children` to `react-dom/no-dangerously-set-innerhtml-with-children`.
793
799
- Rename rule `react/no-dangerously-set-innerhtml` to `react-dom/no-dangerously-set-innerhtml`.
794
800
- Rename rule `react/no-find-dom-node` to `react-dom/no-find-dom-node`.
// TODO: Use the information in `settings["react-x"].additionalComponents` to add support for user-defined components that use the void element internally
36
36
exportdefaultcreateRule<[],MessageID>({
37
37
meta: {
38
38
type: "problem",
39
39
docs: {
40
-
description: "disallow passing 'children' to void DOM elements",
40
+
description: "disallow void elements (AKA self-closing elements) from having children",
41
41
[Symbol.for("rule_features")]: RULE_FEATURES,
42
42
},
43
43
messages: {
44
-
noChildrenInVoidDomElements: "A void DOM element '<{{element}} />' cannot have children.",
44
+
noVoidElementsWithChildren: "'{{element}}' is a void element tag and must not have children.",
0 commit comments