eslint-plugin-react-dom 5.6.0-next.1 → 5.6.0-next.2

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 +39 -39
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -25,45 +25,7 @@ var __exportAll = (all, no_symbols) => {
25
25
  //#endregion
26
26
  //#region package.json
27
27
  var name$2 = "eslint-plugin-react-dom";
28
- var version = "5.6.0-next.1";
29
-
30
- //#endregion
31
- //#region src/utils/create-jsx-element-resolver.ts
32
- /**
33
- * Creates a resolver for JSX elements that determines both the JSX element type
34
- * and the underlying DOM element type.
35
- *
36
- * This resolver handles:
37
- * 1. Regular HTML elements (div, span, etc.)
38
- * 2. Polymorphic components (components that can render as different elements via a prop)
39
- *
40
- * @param context The ESLint rule context
41
- * @returns An object with a resolve method to determine element types
42
- */
43
- function createJsxElementResolver(context) {
44
- const { polymorphicPropName } = getSettingsFromContext(context);
45
- return {
46
- /**
47
- * Resolves the JSX element to determine its type and the underlying DOM element type
48
- *
49
- * @param node The JSX element node to resolve
50
- * @returns An object containing the JSX element type and DOM element type
51
- */
52
- resolve(node) {
53
- const elementName = getElementFullType(node);
54
- const result = {
55
- domElementType: elementName,
56
- jsxElementType: elementName
57
- };
58
- if (elementName === elementName.toLowerCase() || polymorphicPropName == null) return result;
59
- const polyPropValue = getAttributeStaticValue(context, node, polymorphicPropName);
60
- if (typeof polyPropValue === "string") return {
61
- ...result,
62
- domElementType: polyPropValue
63
- };
64
- return result;
65
- } };
66
- }
28
+ var version = "5.6.0-next.2";
67
29
 
68
30
  //#endregion
69
31
  //#region src/utils/create-rule.ts
@@ -265,6 +227,44 @@ function getFix$2(context, node) {
265
227
  };
266
228
  }
267
229
 
230
+ //#endregion
231
+ //#region src/utils/create-jsx-element-resolver.ts
232
+ /**
233
+ * Creates a resolver for JSX elements that determines both the JSX element type
234
+ * and the underlying DOM element type.
235
+ *
236
+ * This resolver handles:
237
+ * 1. Regular HTML elements (div, span, etc.)
238
+ * 2. Polymorphic components (components that can render as different elements via a prop)
239
+ *
240
+ * @param context The ESLint rule context
241
+ * @returns An object with a resolve method to determine element types
242
+ */
243
+ function createJsxElementResolver(context) {
244
+ const { polymorphicPropName } = getSettingsFromContext(context);
245
+ return {
246
+ /**
247
+ * Resolves the JSX element to determine its type and the underlying DOM element type
248
+ *
249
+ * @param node The JSX element node to resolve
250
+ * @returns An object containing the JSX element type and DOM element type
251
+ */
252
+ resolve(node) {
253
+ const elementName = getElementFullType(node);
254
+ const result = {
255
+ domElementType: elementName,
256
+ jsxElementType: elementName
257
+ };
258
+ if (elementName === elementName.toLowerCase() || polymorphicPropName == null) return result;
259
+ const polyPropValue = getAttributeStaticValue(context, node, polymorphicPropName);
260
+ if (typeof polyPropValue === "string") return {
261
+ ...result,
262
+ domElementType: polyPropValue
263
+ };
264
+ return result;
265
+ } };
266
+ }
267
+
268
268
  //#endregion
269
269
  //#region src/rules/no-missing-button-type/no-missing-button-type.ts
270
270
  const RULE_NAME$10 = "no-missing-button-type";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "5.6.0-next.1",
3
+ "version": "5.6.0-next.2",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -40,10 +40,10 @@
40
40
  "@typescript-eslint/types": "^8.59.1",
41
41
  "@typescript-eslint/utils": "^8.59.1",
42
42
  "compare-versions": "^6.1.1",
43
- "@eslint-react/eslint": "5.6.0-next.1",
44
- "@eslint-react/ast": "5.6.0-next.1",
45
- "@eslint-react/jsx": "5.6.0-next.1",
46
- "@eslint-react/shared": "5.6.0-next.1"
43
+ "@eslint-react/ast": "5.6.0-next.2",
44
+ "@eslint-react/eslint": "5.6.0-next.2",
45
+ "@eslint-react/jsx": "5.6.0-next.2",
46
+ "@eslint-react/shared": "5.6.0-next.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/react": "^19.2.14",
@@ -52,8 +52,8 @@
52
52
  "eslint": "^10.2.1",
53
53
  "tsdown": "^0.21.10",
54
54
  "typescript": "^6.0.3",
55
- "@local/configs": "0.0.0",
56
- "@local/eff": "3.0.0-beta.72"
55
+ "@local/eff": "3.0.0-beta.72",
56
+ "@local/configs": "0.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "eslint": "^10.2.1",