eslint-plugin-react-dom 2.5.3 → 2.5.4-beta.1

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 +11 -11
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var __exportAll = (all, symbols) => {
23
23
  //#endregion
24
24
  //#region package.json
25
25
  var name$2 = "eslint-plugin-react-dom";
26
- var version = "2.5.3";
26
+ var version = "2.5.4-beta.1";
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: "Disallows 'dangerouslySetInnerHTML'." },
76
+ docs: { description: "Disallows DOM elements from using '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: "Disallows 'dangerouslySetInnerHTML' and 'children' at the same time." },
102
+ docs: { description: "Disallows DOM elements from using '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
  },
@@ -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 usage of 'ReactDom.hydrate()' with 'hydrateRoot()'." },
212
+ docs: { description: "Replaces usage 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 an 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' attribute for 'iframe' elements." },
317
+ docs: { description: "Enforces an explicit 'sandbox' attribute for 'iframe' elements." },
318
318
  fixable: "code",
319
319
  hasSuggestions: true,
320
320
  messages: {
@@ -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 usage of 'ReactDom.render()' with 'createRoot(node).render()'." },
399
+ docs: { description: "Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'." },
400
400
  fixable: "code",
401
401
  messages: { noRender: "[Deprecated] Use 'createRoot(node).render()' instead." },
402
402
  schema: []
@@ -408,7 +408,7 @@ var no_render_default = createRule({
408
408
  function create$9(context) {
409
409
  if (!context.sourceCode.text.includes("render")) return {};
410
410
  if (compare(getSettingsFromContext(context).version, "18.0.0", "<")) return {};
411
- const reactDomNames = new Set(["ReactDOM", "ReactDom"]);
411
+ const reactDomNames = new Set(["ReactDOM", "ReactDOM"]);
412
412
  const renderNames = /* @__PURE__ */ new Set();
413
413
  return {
414
414
  CallExpression(node) {
@@ -482,7 +482,7 @@ var no_render_return_value_default = createRule({
482
482
  defaultOptions: []
483
483
  });
484
484
  function create$8(context) {
485
- const reactDomNames = new Set(["ReactDOM", "ReactDom"]);
485
+ const reactDomNames = new Set(["ReactDOM", "ReactDOM"]);
486
486
  const renderNames = /* @__PURE__ */ new Set();
487
487
  return {
488
488
  CallExpression(node) {
@@ -1603,7 +1603,7 @@ const messages = {
1603
1603
  var no_unknown_property_default = createRule({
1604
1604
  meta: {
1605
1605
  type: "problem",
1606
- docs: { description: "Disallows unknown 'DOM' property." },
1606
+ docs: { description: "Disallows unknown 'DOM' properties." },
1607
1607
  fixable: "code",
1608
1608
  messages,
1609
1609
  schema: [{
@@ -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 importing React DOM 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.5.3",
3
+ "version": "2.5.4-beta.1",
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/ast": "2.5.3",
48
- "@eslint-react/core": "2.5.3",
49
- "@eslint-react/eff": "2.5.3",
50
- "@eslint-react/shared": "2.5.3",
51
- "@eslint-react/var": "2.5.3"
47
+ "@eslint-react/ast": "2.5.4-beta.1",
48
+ "@eslint-react/core": "2.5.4-beta.1",
49
+ "@eslint-react/eff": "2.5.4-beta.1",
50
+ "@eslint-react/var": "2.5.4-beta.1",
51
+ "@eslint-react/shared": "2.5.4-beta.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.7",