eslint-plugin-react-dom 2.4.0 → 2.4.1-next.0

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.
Files changed (2) hide show
  1. package/dist/index.js +19 -19
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var __export = (all, symbols) => {
23
23
  //#endregion
24
24
  //#region package.json
25
25
  var name$2 = "eslint-plugin-react-dom";
26
- var version = "2.4.0";
26
+ var version = "2.4.1-next.0";
27
27
 
28
28
  //#endregion
29
29
  //#region src/utils/create-jsx-element-resolver.ts
@@ -73,7 +73,7 @@ const DSIH$1 = "dangerouslySetInnerHTML";
73
73
  var no_dangerously_set_innerhtml_default = createRule({
74
74
  meta: {
75
75
  type: "problem",
76
- docs: { description: "Disallow `dangerouslySetInnerHTML`." },
76
+ docs: { description: "Disallow 'dangerouslySetInnerHTML'." },
77
77
  messages: { noDangerouslySetInnerhtml: "Using 'dangerouslySetInnerHTML' may have security implications." },
78
78
  schema: []
79
79
  },
@@ -99,7 +99,7 @@ const RULE_NAME$16 = "no-dangerously-set-innerhtml-with-children";
99
99
  var no_dangerously_set_innerhtml_with_children_default = createRule({
100
100
  meta: {
101
101
  type: "problem",
102
- docs: { description: "Disallow `dangerouslySetInnerHTML` and `children` at the same time." },
102
+ docs: { description: "Disallow 'dangerouslySetInnerHTML' and 'children' at the same time." },
103
103
  messages: { noDangerouslySetInnerhtmlWithChildren: "A DOM component cannot use both children and 'dangerouslySetInnerHTML'." },
104
104
  schema: []
105
105
  },
@@ -137,7 +137,7 @@ const RULE_NAME$15 = "no-find-dom-node";
137
137
  var no_find_dom_node_default = createRule({
138
138
  meta: {
139
139
  type: "problem",
140
- docs: { description: "Disallow `findDOMNode`." },
140
+ docs: { description: "Disallow 'findDOMNode'." },
141
141
  messages: { noFindDomNode: "[Deprecated] Use alternatives instead." },
142
142
  schema: []
143
143
  },
@@ -173,7 +173,7 @@ const RULE_NAME$14 = "no-flush-sync";
173
173
  var no_flush_sync_default = createRule({
174
174
  meta: {
175
175
  type: "problem",
176
- docs: { description: "Disallow `flushSync`." },
176
+ docs: { description: "Disallow 'flushSync'." },
177
177
  messages: { noFlushSync: "Using 'flushSync' is uncommon and can hurt the performance of your app." },
178
178
  schema: []
179
179
  },
@@ -209,7 +209,7 @@ const RULE_NAME$13 = "no-hydrate";
209
209
  var no_hydrate_default = createRule({
210
210
  meta: {
211
211
  type: "problem",
212
- docs: { description: "Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`." },
212
+ docs: { description: "Replaces usages of 'ReactDom.hydrate()' with 'hydrateRoot()'." },
213
213
  fixable: "code",
214
214
  messages: { noHydrate: "[Deprecated] Use 'hydrateRoot()' instead." },
215
215
  schema: []
@@ -279,7 +279,7 @@ const BUTTON_TYPES = [
279
279
  var no_missing_button_type_default = createRule({
280
280
  meta: {
281
281
  type: "problem",
282
- docs: { description: "Enforces explicit `type` attribute for `button` elements." },
282
+ docs: { description: "Enforces explicit 'type' attribute for 'button' elements." },
283
283
  hasSuggestions: true,
284
284
  messages: {
285
285
  addButtonType: "Add 'type' attribute with value '{{type}}'.",
@@ -314,7 +314,7 @@ const RULE_NAME$11 = "no-missing-iframe-sandbox";
314
314
  var no_missing_iframe_sandbox_default = createRule({
315
315
  meta: {
316
316
  type: "problem",
317
- docs: { description: "Enforces explicit `sandbox` prop for `iframe` elements." },
317
+ docs: { description: "Enforces explicit 'sandbox' attribute for 'iframe' elements." },
318
318
  fixable: "code",
319
319
  hasSuggestions: true,
320
320
  messages: {
@@ -370,7 +370,7 @@ const RULE_NAME$10 = "no-namespace";
370
370
  var no_namespace_default = createRule({
371
371
  meta: {
372
372
  type: "problem",
373
- docs: { description: "Enforces the absence of a `namespace` in React elements." },
373
+ docs: { description: "Enforces the absence of a 'namespace' in React elements." },
374
374
  messages: { noNamespace: "A React component '{{name}}' must not be in a namespace, as React does not support them." },
375
375
  schema: []
376
376
  },
@@ -396,7 +396,7 @@ const RULE_NAME$9 = "no-render";
396
396
  var no_render_default = createRule({
397
397
  meta: {
398
398
  type: "problem",
399
- docs: { description: "Replaces usages of `ReactDom.render()` with `createRoot(node).render()`." },
399
+ docs: { description: "Replaces usages of 'ReactDom.render()' with 'createRoot(node).render()'." },
400
400
  fixable: "code",
401
401
  messages: { noRender: "[Deprecated] Use 'createRoot(node).render()' instead." },
402
402
  schema: []
@@ -473,7 +473,7 @@ const banParentTypes = [
473
473
  var no_render_return_value_default = createRule({
474
474
  meta: {
475
475
  type: "problem",
476
- docs: { description: "Disallow the return value of `ReactDOM.render`." },
476
+ docs: { description: "Disallow the return value of 'ReactDOM.render'." },
477
477
  messages: { noRenderReturnValue: "Do not depend on the return value from 'ReactDOM.render'." },
478
478
  schema: []
479
479
  },
@@ -524,7 +524,7 @@ const RULE_NAME$7 = "no-script-url";
524
524
  var no_script_url_default = createRule({
525
525
  meta: {
526
526
  type: "problem",
527
- docs: { description: "Disallow `javascript:` URLs as attribute values." },
527
+ docs: { description: "Disallow 'javascript:' URLs as attribute values." },
528
528
  messages: { noScriptUrl: "Using a `javascript:` URL is a security risk and should be avoided." },
529
529
  schema: []
530
530
  },
@@ -549,7 +549,7 @@ const RULE_NAME$6 = "no-string-style-prop";
549
549
  var no_string_style_prop_default = createRule({
550
550
  meta: {
551
551
  type: "problem",
552
- docs: { description: "Disallows the use of string style prop." },
552
+ docs: { description: "Disallow string values for the 'style' prop." },
553
553
  messages: { noStringStyleProp: "Do not use string style prop. Use an object instead." },
554
554
  schema: []
555
555
  },
@@ -1603,7 +1603,7 @@ const messages = {
1603
1603
  var no_unknown_property_default = createRule({
1604
1604
  meta: {
1605
1605
  type: "problem",
1606
- docs: { description: "Disallow unknown `DOM` property." },
1606
+ docs: { description: "Disallow unknown 'DOM' property." },
1607
1607
  fixable: "code",
1608
1608
  messages,
1609
1609
  schema: [{
@@ -1722,7 +1722,7 @@ function isUnsafeSandboxCombination(value) {
1722
1722
  var no_unsafe_iframe_sandbox_default = createRule({
1723
1723
  meta: {
1724
1724
  type: "problem",
1725
- docs: { description: "Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations." },
1725
+ docs: { description: "Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations." },
1726
1726
  messages: { noUnsafeIframeSandbox: "Unsafe 'sandbox' attribute value on 'iframe' component." },
1727
1727
  schema: []
1728
1728
  },
@@ -1770,7 +1770,7 @@ function isSafeRel(value) {
1770
1770
  var no_unsafe_target_blank_default = createRule({
1771
1771
  meta: {
1772
1772
  type: "problem",
1773
- docs: { description: "Disallow `target=\"_blank\"` without `rel=\"noreferrer noopener\"`." },
1773
+ docs: { description: "Disallow 'target=\"_blank\"' without 'rel=\"noreferrer noopener\"'." },
1774
1774
  fixable: "code",
1775
1775
  hasSuggestions: true,
1776
1776
  messages: {
@@ -1829,7 +1829,7 @@ const RULE_NAME$2 = "no-use-form-state";
1829
1829
  var no_use_form_state_default = createRule({
1830
1830
  meta: {
1831
1831
  type: "problem",
1832
- docs: { description: "Replaces usages of `useFormState` with `useActionState`." },
1832
+ docs: { description: "Replaces usages of 'useFormState' with 'useActionState'." },
1833
1833
  fixable: "code",
1834
1834
  messages: { noUseFormState: "[Deprecated] Use 'useActionState' from 'react' package instead." },
1835
1835
  schema: []
@@ -1909,7 +1909,7 @@ const voidElements = new Set([
1909
1909
  var no_void_elements_with_children_default = createRule({
1910
1910
  meta: {
1911
1911
  type: "problem",
1912
- docs: { description: "Disallow `children` in void DOM elements." },
1912
+ docs: { description: "Disallow 'children' in void DOM elements." },
1913
1913
  messages: { noVoidElementsWithChildren: "'{{elementType}}' is a void element tag and must not have children." },
1914
1914
  schema: []
1915
1915
  },
@@ -1939,7 +1939,7 @@ const RULE_NAME = "prefer-namespace-import";
1939
1939
  var prefer_namespace_import_default = createRule({
1940
1940
  meta: {
1941
1941
  type: "problem",
1942
- docs: { description: "Enforces React Dom is imported via a namespace import." },
1942
+ docs: { description: "Enforces React DOM is imported via a namespace import." },
1943
1943
  fixable: "code",
1944
1944
  messages: { preferNamespaceImport: "Prefer importing React DOM via a namespace import." },
1945
1945
  schema: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "2.4.0",
3
+ "version": "2.4.1-next.0",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -44,11 +44,11 @@
44
44
  "compare-versions": "^6.1.1",
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-pattern": "^5.9.0",
47
- "@eslint-react/core": "2.4.0",
48
- "@eslint-react/eff": "2.4.0",
49
- "@eslint-react/shared": "2.4.0",
50
- "@eslint-react/var": "2.4.0",
51
- "@eslint-react/ast": "2.4.0"
47
+ "@eslint-react/ast": "2.4.1-next.0",
48
+ "@eslint-react/core": "2.4.1-next.0",
49
+ "@eslint-react/var": "2.4.1-next.0",
50
+ "@eslint-react/shared": "2.4.1-next.0",
51
+ "@eslint-react/eff": "2.4.1-next.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.7",