eslint-plugin-react-dom 1.37.1-next.4 → 1.37.1-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -17
- package/dist/index.mjs +17 -17
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -66,7 +66,7 @@ var settings = {
|
|
|
66
66
|
|
|
67
67
|
// package.json
|
|
68
68
|
var name2 = "eslint-plugin-react-dom";
|
|
69
|
-
var version = "1.37.1-next.
|
|
69
|
+
var version = "1.37.1-next.5";
|
|
70
70
|
var createRule = shared.createRuleForPlugin("dom");
|
|
71
71
|
|
|
72
72
|
// src/utils/find-custom-component.ts
|
|
@@ -103,7 +103,7 @@ var no_dangerously_set_innerhtml_default = createRule({
|
|
|
103
103
|
meta: {
|
|
104
104
|
type: "problem",
|
|
105
105
|
docs: {
|
|
106
|
-
description: "
|
|
106
|
+
description: "Disallow `dangerouslySetInnerHTML`.",
|
|
107
107
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
108
108
|
},
|
|
109
109
|
messages: {
|
|
@@ -139,7 +139,7 @@ var no_dangerously_set_innerhtml_with_children_default = createRule({
|
|
|
139
139
|
meta: {
|
|
140
140
|
type: "problem",
|
|
141
141
|
docs: {
|
|
142
|
-
description: "
|
|
142
|
+
description: "Disallow `dangerouslySetInnerHTML` and `children` at the same time.",
|
|
143
143
|
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
144
144
|
},
|
|
145
145
|
messages: {
|
|
@@ -176,7 +176,7 @@ var no_find_dom_node_default = createRule({
|
|
|
176
176
|
meta: {
|
|
177
177
|
type: "problem",
|
|
178
178
|
docs: {
|
|
179
|
-
description: "
|
|
179
|
+
description: "Disallow `findDOMNode`.",
|
|
180
180
|
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
181
181
|
},
|
|
182
182
|
messages: {
|
|
@@ -214,7 +214,7 @@ var no_flush_sync_default = createRule({
|
|
|
214
214
|
meta: {
|
|
215
215
|
type: "problem",
|
|
216
216
|
docs: {
|
|
217
|
-
description: "
|
|
217
|
+
description: "Disallow `flushSync`.",
|
|
218
218
|
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
219
219
|
},
|
|
220
220
|
messages: {
|
|
@@ -254,7 +254,7 @@ var no_hydrate_default = createRule({
|
|
|
254
254
|
meta: {
|
|
255
255
|
type: "problem",
|
|
256
256
|
docs: {
|
|
257
|
-
description: "
|
|
257
|
+
description: "Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",
|
|
258
258
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
259
259
|
},
|
|
260
260
|
fixable: "code",
|
|
@@ -328,7 +328,7 @@ var no_missing_button_type_default = createRule({
|
|
|
328
328
|
meta: {
|
|
329
329
|
type: "problem",
|
|
330
330
|
docs: {
|
|
331
|
-
description: "
|
|
331
|
+
description: "Enforces explicit `type` attribute for `button` elements.",
|
|
332
332
|
[Symbol.for("rule_features")]: RULE_FEATURES6
|
|
333
333
|
},
|
|
334
334
|
messages: {
|
|
@@ -409,7 +409,7 @@ var no_missing_iframe_sandbox_default = createRule({
|
|
|
409
409
|
meta: {
|
|
410
410
|
type: "problem",
|
|
411
411
|
docs: {
|
|
412
|
-
description: "
|
|
412
|
+
description: "Enforces explicit `sandbox` attribute for `iframe` elements.",
|
|
413
413
|
[Symbol.for("rule_features")]: RULE_FEATURES7
|
|
414
414
|
},
|
|
415
415
|
messages: {
|
|
@@ -468,7 +468,7 @@ var no_namespace_default = createRule({
|
|
|
468
468
|
meta: {
|
|
469
469
|
type: "problem",
|
|
470
470
|
docs: {
|
|
471
|
-
description: "
|
|
471
|
+
description: "Enforces the absence of a `namespace` in React elements.",
|
|
472
472
|
[Symbol.for("rule_features")]: RULE_FEATURES8
|
|
473
473
|
},
|
|
474
474
|
messages: {
|
|
@@ -505,7 +505,7 @@ var no_render_default = createRule({
|
|
|
505
505
|
meta: {
|
|
506
506
|
type: "problem",
|
|
507
507
|
docs: {
|
|
508
|
-
description: "
|
|
508
|
+
description: "Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",
|
|
509
509
|
[Symbol.for("rule_features")]: RULE_FEATURES9
|
|
510
510
|
},
|
|
511
511
|
fixable: "code",
|
|
@@ -586,7 +586,7 @@ var no_render_return_value_default = createRule({
|
|
|
586
586
|
meta: {
|
|
587
587
|
type: "problem",
|
|
588
588
|
docs: {
|
|
589
|
-
description: "
|
|
589
|
+
description: "Disallow the return value of `ReactDOM.render`.",
|
|
590
590
|
[Symbol.for("rule_features")]: RULE_FEATURES10
|
|
591
591
|
},
|
|
592
592
|
messages: {
|
|
@@ -631,7 +631,7 @@ var no_script_url_default = createRule({
|
|
|
631
631
|
meta: {
|
|
632
632
|
type: "problem",
|
|
633
633
|
docs: {
|
|
634
|
-
description: "
|
|
634
|
+
description: "Disallow `javascript:` URLs as attribute values.",
|
|
635
635
|
[Symbol.for("rule_features")]: RULE_FEATURES11
|
|
636
636
|
},
|
|
637
637
|
messages: {
|
|
@@ -1604,7 +1604,7 @@ var no_unknown_property_default = createRule({
|
|
|
1604
1604
|
meta: {
|
|
1605
1605
|
type: "problem",
|
|
1606
1606
|
docs: {
|
|
1607
|
-
description: "
|
|
1607
|
+
description: "Disallow unknown `DOM` property."
|
|
1608
1608
|
},
|
|
1609
1609
|
fixable: "code",
|
|
1610
1610
|
messages,
|
|
@@ -1735,7 +1735,7 @@ var no_unsafe_iframe_sandbox_default = createRule({
|
|
|
1735
1735
|
meta: {
|
|
1736
1736
|
type: "problem",
|
|
1737
1737
|
docs: {
|
|
1738
|
-
description: "
|
|
1738
|
+
description: "Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",
|
|
1739
1739
|
[Symbol.for("rule_features")]: RULE_FEATURES12
|
|
1740
1740
|
},
|
|
1741
1741
|
messages: {
|
|
@@ -1804,7 +1804,7 @@ var no_unsafe_target_blank_default = createRule({
|
|
|
1804
1804
|
meta: {
|
|
1805
1805
|
type: "problem",
|
|
1806
1806
|
docs: {
|
|
1807
|
-
description: `
|
|
1807
|
+
description: 'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',
|
|
1808
1808
|
[Symbol.for("rule_features")]: RULE_FEATURES13
|
|
1809
1809
|
},
|
|
1810
1810
|
messages: {
|
|
@@ -1871,7 +1871,7 @@ var no_use_form_state_default = createRule({
|
|
|
1871
1871
|
meta: {
|
|
1872
1872
|
type: "problem",
|
|
1873
1873
|
docs: {
|
|
1874
|
-
description: "
|
|
1874
|
+
description: "Replaces usages of `useFormState` with `useActionState`.",
|
|
1875
1875
|
[Symbol.for("rule_features")]: RULE_FEATURES14
|
|
1876
1876
|
},
|
|
1877
1877
|
fixable: "code",
|
|
@@ -1962,7 +1962,7 @@ var no_void_elements_with_children_default = createRule({
|
|
|
1962
1962
|
meta: {
|
|
1963
1963
|
type: "problem",
|
|
1964
1964
|
docs: {
|
|
1965
|
-
description: "
|
|
1965
|
+
description: "Disallow `children` in void DOM elements.",
|
|
1966
1966
|
[Symbol.for("rule_features")]: RULE_FEATURES15
|
|
1967
1967
|
},
|
|
1968
1968
|
messages: {
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var settings = {
|
|
|
43
43
|
|
|
44
44
|
// package.json
|
|
45
45
|
var name2 = "eslint-plugin-react-dom";
|
|
46
|
-
var version = "1.37.1-next.
|
|
46
|
+
var version = "1.37.1-next.5";
|
|
47
47
|
var createRule = createRuleForPlugin("dom");
|
|
48
48
|
|
|
49
49
|
// src/utils/find-custom-component.ts
|
|
@@ -80,7 +80,7 @@ var no_dangerously_set_innerhtml_default = createRule({
|
|
|
80
80
|
meta: {
|
|
81
81
|
type: "problem",
|
|
82
82
|
docs: {
|
|
83
|
-
description: "
|
|
83
|
+
description: "Disallow `dangerouslySetInnerHTML`.",
|
|
84
84
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
85
85
|
},
|
|
86
86
|
messages: {
|
|
@@ -116,7 +116,7 @@ var no_dangerously_set_innerhtml_with_children_default = createRule({
|
|
|
116
116
|
meta: {
|
|
117
117
|
type: "problem",
|
|
118
118
|
docs: {
|
|
119
|
-
description: "
|
|
119
|
+
description: "Disallow `dangerouslySetInnerHTML` and `children` at the same time.",
|
|
120
120
|
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
121
121
|
},
|
|
122
122
|
messages: {
|
|
@@ -153,7 +153,7 @@ var no_find_dom_node_default = createRule({
|
|
|
153
153
|
meta: {
|
|
154
154
|
type: "problem",
|
|
155
155
|
docs: {
|
|
156
|
-
description: "
|
|
156
|
+
description: "Disallow `findDOMNode`.",
|
|
157
157
|
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
158
158
|
},
|
|
159
159
|
messages: {
|
|
@@ -191,7 +191,7 @@ var no_flush_sync_default = createRule({
|
|
|
191
191
|
meta: {
|
|
192
192
|
type: "problem",
|
|
193
193
|
docs: {
|
|
194
|
-
description: "
|
|
194
|
+
description: "Disallow `flushSync`.",
|
|
195
195
|
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
196
196
|
},
|
|
197
197
|
messages: {
|
|
@@ -231,7 +231,7 @@ var no_hydrate_default = createRule({
|
|
|
231
231
|
meta: {
|
|
232
232
|
type: "problem",
|
|
233
233
|
docs: {
|
|
234
|
-
description: "
|
|
234
|
+
description: "Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",
|
|
235
235
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
236
236
|
},
|
|
237
237
|
fixable: "code",
|
|
@@ -305,7 +305,7 @@ var no_missing_button_type_default = createRule({
|
|
|
305
305
|
meta: {
|
|
306
306
|
type: "problem",
|
|
307
307
|
docs: {
|
|
308
|
-
description: "
|
|
308
|
+
description: "Enforces explicit `type` attribute for `button` elements.",
|
|
309
309
|
[Symbol.for("rule_features")]: RULE_FEATURES6
|
|
310
310
|
},
|
|
311
311
|
messages: {
|
|
@@ -386,7 +386,7 @@ var no_missing_iframe_sandbox_default = createRule({
|
|
|
386
386
|
meta: {
|
|
387
387
|
type: "problem",
|
|
388
388
|
docs: {
|
|
389
|
-
description: "
|
|
389
|
+
description: "Enforces explicit `sandbox` attribute for `iframe` elements.",
|
|
390
390
|
[Symbol.for("rule_features")]: RULE_FEATURES7
|
|
391
391
|
},
|
|
392
392
|
messages: {
|
|
@@ -445,7 +445,7 @@ var no_namespace_default = createRule({
|
|
|
445
445
|
meta: {
|
|
446
446
|
type: "problem",
|
|
447
447
|
docs: {
|
|
448
|
-
description: "
|
|
448
|
+
description: "Enforces the absence of a `namespace` in React elements.",
|
|
449
449
|
[Symbol.for("rule_features")]: RULE_FEATURES8
|
|
450
450
|
},
|
|
451
451
|
messages: {
|
|
@@ -482,7 +482,7 @@ var no_render_default = createRule({
|
|
|
482
482
|
meta: {
|
|
483
483
|
type: "problem",
|
|
484
484
|
docs: {
|
|
485
|
-
description: "
|
|
485
|
+
description: "Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",
|
|
486
486
|
[Symbol.for("rule_features")]: RULE_FEATURES9
|
|
487
487
|
},
|
|
488
488
|
fixable: "code",
|
|
@@ -563,7 +563,7 @@ var no_render_return_value_default = createRule({
|
|
|
563
563
|
meta: {
|
|
564
564
|
type: "problem",
|
|
565
565
|
docs: {
|
|
566
|
-
description: "
|
|
566
|
+
description: "Disallow the return value of `ReactDOM.render`.",
|
|
567
567
|
[Symbol.for("rule_features")]: RULE_FEATURES10
|
|
568
568
|
},
|
|
569
569
|
messages: {
|
|
@@ -608,7 +608,7 @@ var no_script_url_default = createRule({
|
|
|
608
608
|
meta: {
|
|
609
609
|
type: "problem",
|
|
610
610
|
docs: {
|
|
611
|
-
description: "
|
|
611
|
+
description: "Disallow `javascript:` URLs as attribute values.",
|
|
612
612
|
[Symbol.for("rule_features")]: RULE_FEATURES11
|
|
613
613
|
},
|
|
614
614
|
messages: {
|
|
@@ -1581,7 +1581,7 @@ var no_unknown_property_default = createRule({
|
|
|
1581
1581
|
meta: {
|
|
1582
1582
|
type: "problem",
|
|
1583
1583
|
docs: {
|
|
1584
|
-
description: "
|
|
1584
|
+
description: "Disallow unknown `DOM` property."
|
|
1585
1585
|
},
|
|
1586
1586
|
fixable: "code",
|
|
1587
1587
|
messages,
|
|
@@ -1712,7 +1712,7 @@ var no_unsafe_iframe_sandbox_default = createRule({
|
|
|
1712
1712
|
meta: {
|
|
1713
1713
|
type: "problem",
|
|
1714
1714
|
docs: {
|
|
1715
|
-
description: "
|
|
1715
|
+
description: "Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",
|
|
1716
1716
|
[Symbol.for("rule_features")]: RULE_FEATURES12
|
|
1717
1717
|
},
|
|
1718
1718
|
messages: {
|
|
@@ -1781,7 +1781,7 @@ var no_unsafe_target_blank_default = createRule({
|
|
|
1781
1781
|
meta: {
|
|
1782
1782
|
type: "problem",
|
|
1783
1783
|
docs: {
|
|
1784
|
-
description: `
|
|
1784
|
+
description: 'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',
|
|
1785
1785
|
[Symbol.for("rule_features")]: RULE_FEATURES13
|
|
1786
1786
|
},
|
|
1787
1787
|
messages: {
|
|
@@ -1848,7 +1848,7 @@ var no_use_form_state_default = createRule({
|
|
|
1848
1848
|
meta: {
|
|
1849
1849
|
type: "problem",
|
|
1850
1850
|
docs: {
|
|
1851
|
-
description: "
|
|
1851
|
+
description: "Replaces usages of `useFormState` with `useActionState`.",
|
|
1852
1852
|
[Symbol.for("rule_features")]: RULE_FEATURES14
|
|
1853
1853
|
},
|
|
1854
1854
|
fixable: "code",
|
|
@@ -1939,7 +1939,7 @@ var no_void_elements_with_children_default = createRule({
|
|
|
1939
1939
|
meta: {
|
|
1940
1940
|
type: "problem",
|
|
1941
1941
|
docs: {
|
|
1942
|
-
description: "
|
|
1942
|
+
description: "Disallow `children` in void DOM elements.",
|
|
1943
1943
|
[Symbol.for("rule_features")]: RULE_FEATURES15
|
|
1944
1944
|
},
|
|
1945
1945
|
messages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.37.1-next.
|
|
3
|
+
"version": "1.37.1-next.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.37.1-next.
|
|
53
|
-
"@eslint-react/core": "1.37.1-next.
|
|
54
|
-
"@eslint-react/eff": "1.37.1-next.
|
|
55
|
-
"@eslint-react/shared": "1.37.1-next.
|
|
56
|
-
"@eslint-react/var": "1.37.1-next.
|
|
57
|
-
"@eslint-react/jsx": "1.37.1-next.
|
|
52
|
+
"@eslint-react/ast": "1.37.1-next.5",
|
|
53
|
+
"@eslint-react/core": "1.37.1-next.5",
|
|
54
|
+
"@eslint-react/eff": "1.37.1-next.5",
|
|
55
|
+
"@eslint-react/shared": "1.37.1-next.5",
|
|
56
|
+
"@eslint-react/var": "1.37.1-next.5",
|
|
57
|
+
"@eslint-react/jsx": "1.37.1-next.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.12",
|