eslint-plugin-react-dom 3.0.0-beta.70 → 3.0.0-beta.74

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 +6 -10
  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 = "3.0.0-beta.70";
27
+ var version = "3.0.0-beta.74";
28
28
 
29
29
  //#endregion
30
30
  //#region src/utils/create-jsx-element-resolver.ts
@@ -49,15 +49,11 @@ function createJsxElementResolver(context) {
49
49
  jsxElementType: elementName
50
50
  };
51
51
  if (elementName === elementName.toLowerCase() || polymorphicPropName == null) return result;
52
- const polymorphicProp = jsx.findAttribute(node, polymorphicPropName);
53
- if (polymorphicProp != null) {
54
- const polyPropValue = jsx.resolveAttributeValue(polymorphicProp);
55
- const polyPropValueString = polyPropValue.kind === "spreadProps" ? polyPropValue.getProperty(polymorphicPropName) : polyPropValue.toStatic();
56
- if (typeof polyPropValueString === "string") return {
57
- ...result,
58
- domElementType: polyPropValueString
59
- };
60
- }
52
+ const polyPropValue = jsx.getAttributeValue(node, polymorphicPropName)?.toStatic();
53
+ if (typeof polyPropValue === "string") return {
54
+ ...result,
55
+ domElementType: polyPropValue
56
+ };
61
57
  return result;
62
58
  } };
63
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "3.0.0-beta.70",
3
+ "version": "3.0.0-beta.74",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,11 +43,11 @@
43
43
  "@typescript-eslint/utils": "canary",
44
44
  "compare-versions": "^6.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/core": "3.0.0-beta.70",
47
- "@eslint-react/eff": "3.0.0-beta.70",
48
- "@eslint-react/shared": "3.0.0-beta.70",
49
- "@eslint-react/ast": "3.0.0-beta.70",
50
- "@eslint-react/var": "3.0.0-beta.70"
46
+ "@eslint-react/ast": "3.0.0-beta.74",
47
+ "@eslint-react/core": "3.0.0-beta.74",
48
+ "@eslint-react/var": "3.0.0-beta.74",
49
+ "@eslint-react/shared": "3.0.0-beta.74",
50
+ "@local/eff": "3.0.0-beta.72"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",
@@ -57,8 +57,8 @@
57
57
  "@local/configs": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
61
- "typescript": ">=4.8.4 <6.0.0"
60
+ "eslint": "^10.0.0",
61
+ "typescript": "*"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22.0.0"