eslint-plugin-react-dom 2.7.4 → 2.7.5-beta.11

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 +12 -12
  2. package/package.json +10 -10
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.7.4";
26
+ var version = "2.7.5-beta.11";
27
27
 
28
28
  //#endregion
29
29
  //#region src/utils/create-jsx-element-resolver.ts
@@ -109,7 +109,7 @@ var no_dangerously_set_innerhtml_with_children_default = createRule({
109
109
  });
110
110
  const DSIH = "dangerouslySetInnerHTML";
111
111
  /**
112
- * Checks if a JSX child node is considered significant (i.e., not just whitespace for formatting)
112
+ * Check if a JSX child node is considered significant (i.e., not just whitespace for formatting)
113
113
  * @param node The JSX child node to check
114
114
  * @returns `true` if the node is significant, `false` otherwise
115
115
  */
@@ -1496,7 +1496,7 @@ function getDOMPropertyNames(context) {
1496
1496
  return ALL_DOM_PROPERTY_NAMES;
1497
1497
  }
1498
1498
  /**
1499
- * Checks if a node's parent is a JSX tag that is written with lowercase letters,
1499
+ * Check if a node's parent is a JSX tag that is written with lowercase letters,
1500
1500
  * and is not a custom web component.
1501
1501
  * @param childNode JSX element being tested
1502
1502
  * @returns Whether the node is a valid HTML tag in JSX
@@ -1514,7 +1514,7 @@ function normalizeAttributeCase(name) {
1514
1514
  return DOM_PROPERTIES_IGNORE_CASE.find((element) => element.toLowerCase() === name.toLowerCase()) || name;
1515
1515
  }
1516
1516
  /**
1517
- * Checks if an attribute name is a valid data-* attribute
1517
+ * Check if an attribute name is a valid data-* attribute
1518
1518
  * @param name Attribute name to test
1519
1519
  * @returns Whether the attribute is a valid data attribute
1520
1520
  */
@@ -1522,7 +1522,7 @@ function isValidDataAttribute(name) {
1522
1522
  return !/^data-xml/i.test(name) && /^data-[^:]*$/.test(name);
1523
1523
  }
1524
1524
  /**
1525
- * Checks if an attribute name has uppercase characters
1525
+ * Check if an attribute name has uppercase characters
1526
1526
  * @param name Attribute name to test
1527
1527
  * @returns Whether the name has uppercase characters
1528
1528
  */
@@ -1530,7 +1530,7 @@ function hasUpperCaseCharacter(name) {
1530
1530
  return name.toLowerCase() !== name;
1531
1531
  }
1532
1532
  /**
1533
- * Checks if an attribute is a valid ARIA attribute
1533
+ * Check if an attribute is a valid ARIA attribute
1534
1534
  * @param name Attribute name to test
1535
1535
  * @returns Whether the attribute is a valid ARIA attribute
1536
1536
  */
@@ -1547,7 +1547,7 @@ function getTagName(node) {
1547
1547
  return null;
1548
1548
  }
1549
1549
  /**
1550
- * Checks if the tag name has a dot (member expression)
1550
+ * Check if the tag name has a dot (member expression)
1551
1551
  * @param node JSXAttribute to check
1552
1552
  * @returns Whether the tag name has a dot
1553
1553
  */
@@ -1566,7 +1566,7 @@ function getStandardName(name, context) {
1566
1566
  return getDOMPropertyNames(context).find((element) => element.toLowerCase() === name.toLowerCase());
1567
1567
  }
1568
1568
  /**
1569
- * Checks if an object has a property
1569
+ * Check if an object has a property
1570
1570
  * @param obj Object to check
1571
1571
  * @param key Key to check for
1572
1572
  * @returns Whether the object has the property
@@ -1709,7 +1709,7 @@ function create$5(context) {
1709
1709
  const RULE_NAME$4 = "no-unsafe-iframe-sandbox";
1710
1710
  const UNSAFE_SANDBOX_VALUES = ["allow-scripts", "allow-same-origin"];
1711
1711
  /**
1712
- * Checks if the sandbox attribute value contains an unsafe combination
1712
+ * Check if the sandbox attribute value contains an unsafe combination
1713
1713
  * An iframe with both "allow-scripts" and "allow-same-origin" can remove its sandbox attribute,
1714
1714
  * making it as insecure as an iframe without any sandboxing
1715
1715
  * @param value The value of the sandbox attribute
@@ -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 that the '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
  },
@@ -1748,7 +1748,7 @@ function create$4(context) {
1748
1748
  //#region src/rules/no-unsafe-target-blank.ts
1749
1749
  const RULE_NAME$3 = "no-unsafe-target-blank";
1750
1750
  /**
1751
- * Checks if a value appears to be an external link.
1751
+ * Check if a value appears to be an external link.
1752
1752
  * External links typically start with http(s):// or have protocol-relative format.
1753
1753
  * @param value The value to check
1754
1754
  * @returns Whether the value represents an external link
@@ -1758,7 +1758,7 @@ function isExternalLinkLike(value) {
1758
1758
  return value.startsWith("https://") || /^(?:\w+:|\/\/)/u.test(value);
1759
1759
  }
1760
1760
  /**
1761
- * Checks if a rel prop value contains the necessary security attributes.
1761
+ * Check if a rel prop value contains the necessary security attributes.
1762
1762
  * At minimum, it should contain "noreferrer".
1763
1763
  * @param value The rel prop value to check
1764
1764
  * @returns Whether the rel value is considered secure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "2.7.4",
3
+ "version": "2.7.5-beta.11",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,20 +38,20 @@
38
38
  "./package.json"
39
39
  ],
40
40
  "dependencies": {
41
- "@typescript-eslint/scope-manager": "^8.53.1",
42
- "@typescript-eslint/types": "^8.53.1",
43
- "@typescript-eslint/utils": "^8.53.1",
41
+ "@typescript-eslint/scope-manager": "^8.54.0",
42
+ "@typescript-eslint/types": "^8.54.0",
43
+ "@typescript-eslint/utils": "^8.54.0",
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.7.4",
48
- "@eslint-react/shared": "2.7.4",
49
- "@eslint-react/eff": "2.7.4",
50
- "@eslint-react/core": "2.7.4",
51
- "@eslint-react/var": "2.7.4"
47
+ "@eslint-react/ast": "2.7.5-beta.11",
48
+ "@eslint-react/core": "2.7.5-beta.11",
49
+ "@eslint-react/shared": "2.7.5-beta.11",
50
+ "@eslint-react/eff": "2.7.5-beta.11",
51
+ "@eslint-react/var": "2.7.5-beta.11"
52
52
  },
53
53
  "devDependencies": {
54
- "@types/react": "^19.2.9",
54
+ "@types/react": "^19.2.10",
55
55
  "@types/react-dom": "^19.2.3",
56
56
  "tsdown": "^0.20.1",
57
57
  "@local/configs": "0.0.0"