eslint-plugin-react-dom 5.2.3-beta.0 → 5.2.3-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 +30 -27
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
24
24
  //#endregion
25
25
  //#region package.json
26
26
  var name$2 = "eslint-plugin-react-dom";
27
- var version = "5.2.3-beta.0";
27
+ var version = "5.2.3-beta.1";
28
28
 
29
29
  //#endregion
30
30
  //#region src/utils/create-jsx-element-resolver.ts
@@ -534,12 +534,7 @@ function create$5(context) {
534
534
  }
535
535
 
536
536
  //#endregion
537
- //#region src/rules/no-unknown-property/no-unknown-property.ts
538
- const RULE_NAME$4 = "no-unknown-property";
539
- const DEFAULTS = {
540
- ignore: [],
541
- requireDataLowercase: false
542
- };
537
+ //#region src/rules/no-unknown-property/lib.ts
543
538
  /**
544
539
  * Map of standard HTML attributes to their React counterparts
545
540
  */
@@ -1444,6 +1439,17 @@ const POPOVER_API_PROPS = [
1444
1439
  "onBeforeToggle"
1445
1440
  ];
1446
1441
  /**
1442
+ * Tests React version against a comparator
1443
+ * @param context ESLint context
1444
+ * @param comparator Comparison operator
1445
+ * @param version Version to compare against
1446
+ * @returns Comparison result
1447
+ */
1448
+ function testReactVersion(context, comparator, version) {
1449
+ const { version: localVersion } = getSettingsFromContext(context);
1450
+ return compare(localVersion, version, comparator);
1451
+ }
1452
+ /**
1447
1453
  * Gets all valid DOM property names based on React version
1448
1454
  * @param context ESLint rule context
1449
1455
  * @returns Array of valid DOM property names
@@ -1519,6 +1525,15 @@ function tagNameHasDot(node) {
1519
1525
  return node.parent.name.type === AST_NODE_TYPES.JSXMemberExpression;
1520
1526
  }
1521
1527
  /**
1528
+ * Check if an object has a property
1529
+ * @param obj Object to check
1530
+ * @param key Key to check for
1531
+ * @returns Whether the object has the property
1532
+ */
1533
+ function has(obj, key) {
1534
+ return Object.hasOwn(obj, key);
1535
+ }
1536
+ /**
1522
1537
  * Gets the standard name of an attribute
1523
1538
  * @param name Attribute name
1524
1539
  * @param context ESLint context
@@ -1530,15 +1545,6 @@ function getStandardName(name, context) {
1530
1545
  return getDOMPropertyNames(context).find((element) => element.toLowerCase() === name.toLowerCase()) ?? null;
1531
1546
  }
1532
1547
  /**
1533
- * Check if an object has a property
1534
- * @param obj Object to check
1535
- * @param key Key to check for
1536
- * @returns Whether the object has the property
1537
- */
1538
- function has(obj, key) {
1539
- return Object.hasOwn(obj, key);
1540
- }
1541
- /**
1542
1548
  * Gets text of a node
1543
1549
  * @param context ESLint context
1544
1550
  * @param node Node to get text from
@@ -1547,17 +1553,14 @@ function has(obj, key) {
1547
1553
  function getText(context, node) {
1548
1554
  return context.sourceCode.getText(node);
1549
1555
  }
1550
- /**
1551
- * Tests React version against a comparator
1552
- * @param context ESLint context
1553
- * @param comparator Comparison operator
1554
- * @param version Version to compare against
1555
- * @returns Comparison result
1556
- */
1557
- function testReactVersion(context, comparator, version) {
1558
- const { version: localVersion } = getSettingsFromContext(context);
1559
- return compare(localVersion, version, comparator);
1560
- }
1556
+
1557
+ //#endregion
1558
+ //#region src/rules/no-unknown-property/no-unknown-property.ts
1559
+ const RULE_NAME$4 = "no-unknown-property";
1560
+ const DEFAULTS = {
1561
+ ignore: [],
1562
+ requireDataLowercase: false
1563
+ };
1561
1564
  const messages = {
1562
1565
  dataLowercaseRequired: "React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",
1563
1566
  invalidPropOnTag: "Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "5.2.3-beta.0",
3
+ "version": "5.2.3-beta.1",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,12 +43,12 @@
43
43
  "@typescript-eslint/utils": "^8.58.2",
44
44
  "compare-versions": "^6.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "5.2.3-beta.0",
47
- "@eslint-react/core": "5.2.3-beta.0",
48
- "@eslint-react/eslint": "5.2.3-beta.0",
49
- "@eslint-react/jsx": "5.2.3-beta.0",
50
- "@eslint-react/shared": "5.2.3-beta.0",
51
- "@eslint-react/var": "5.2.3-beta.0"
46
+ "@eslint-react/ast": "5.2.3-beta.1",
47
+ "@eslint-react/core": "5.2.3-beta.1",
48
+ "@eslint-react/eslint": "5.2.3-beta.1",
49
+ "@eslint-react/jsx": "5.2.3-beta.1",
50
+ "@eslint-react/var": "5.2.3-beta.1",
51
+ "@eslint-react/shared": "5.2.3-beta.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.14",
@@ -72,7 +72,7 @@
72
72
  "@local/eff": "workspace:*"
73
73
  },
74
74
  "scripts": {
75
- "build": "tsdown",
75
+ "build": "tsdown --dts-resolve",
76
76
  "lint:publish": "publint",
77
77
  "lint:ts": "tsl"
78
78
  }