eslint-plugin-react-dom 1.28.0-beta.1 → 1.28.0-beta.6

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.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ var settings = {
62
62
 
63
63
  // package.json
64
64
  var name2 = "eslint-plugin-react-dom";
65
- var version = "1.28.0-beta.1";
65
+ var version = "1.28.0-beta.6";
66
66
  var createRule = shared.createRuleForPlugin("dom");
67
67
 
68
68
  // src/utils/find-custom-component.ts
@@ -72,7 +72,7 @@ function findCustomComponent(name3, components) {
72
72
  function findCustomComponentProp(name3, props) {
73
73
  return props.findLast((a) => a.as === name3);
74
74
  }
75
- function getElementNameOnJsxAndDom(node, context, polymorphicPropName, additionalComponents = []) {
75
+ function getElementNameOnJsxAndDom(context, node, polymorphicPropName, additionalComponents = []) {
76
76
  const name3 = JSX__namespace.getElementName(node);
77
77
  if (name3 === name3.toLowerCase()) return [name3, name3];
78
78
  const component = additionalComponents.findLast((c) => c.name === name3 || c.re.test(name3));
@@ -270,8 +270,8 @@ var no_missing_button_type_default = createRule({
270
270
  return {
271
271
  JSXElement(node) {
272
272
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
273
- node,
274
273
  context,
274
+ node,
275
275
  polymorphicPropName,
276
276
  additionalComponents
277
277
  );
@@ -352,8 +352,8 @@ var no_missing_iframe_sandbox_default = createRule({
352
352
  return {
353
353
  JSXElement(node) {
354
354
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
355
- node,
356
355
  context,
356
+ node,
357
357
  polymorphicPropName,
358
358
  additionalComponents
359
359
  );
@@ -1605,8 +1605,8 @@ var no_unsafe_iframe_sandbox_default = createRule({
1605
1605
  return {
1606
1606
  JSXElement(node) {
1607
1607
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
1608
- node,
1609
1608
  context,
1609
+ node,
1610
1610
  polymorphicPropName,
1611
1611
  additionalComponents
1612
1612
  );
@@ -1675,8 +1675,8 @@ var no_unsafe_target_blank_default = createRule({
1675
1675
  return {
1676
1676
  JSXElement(node) {
1677
1677
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
1678
- node,
1679
1678
  context,
1679
+ node,
1680
1680
  polymorphicPropName,
1681
1681
  additionalComponents
1682
1682
  );
package/dist/index.mjs CHANGED
@@ -39,7 +39,7 @@ var settings = {
39
39
 
40
40
  // package.json
41
41
  var name2 = "eslint-plugin-react-dom";
42
- var version = "1.28.0-beta.1";
42
+ var version = "1.28.0-beta.6";
43
43
  var createRule = createRuleForPlugin("dom");
44
44
 
45
45
  // src/utils/find-custom-component.ts
@@ -49,7 +49,7 @@ function findCustomComponent(name3, components) {
49
49
  function findCustomComponentProp(name3, props) {
50
50
  return props.findLast((a) => a.as === name3);
51
51
  }
52
- function getElementNameOnJsxAndDom(node, context, polymorphicPropName, additionalComponents = []) {
52
+ function getElementNameOnJsxAndDom(context, node, polymorphicPropName, additionalComponents = []) {
53
53
  const name3 = JSX.getElementName(node);
54
54
  if (name3 === name3.toLowerCase()) return [name3, name3];
55
55
  const component = additionalComponents.findLast((c) => c.name === name3 || c.re.test(name3));
@@ -247,8 +247,8 @@ var no_missing_button_type_default = createRule({
247
247
  return {
248
248
  JSXElement(node) {
249
249
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
250
- node,
251
250
  context,
251
+ node,
252
252
  polymorphicPropName,
253
253
  additionalComponents
254
254
  );
@@ -329,8 +329,8 @@ var no_missing_iframe_sandbox_default = createRule({
329
329
  return {
330
330
  JSXElement(node) {
331
331
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
332
- node,
333
332
  context,
333
+ node,
334
334
  polymorphicPropName,
335
335
  additionalComponents
336
336
  );
@@ -1582,8 +1582,8 @@ var no_unsafe_iframe_sandbox_default = createRule({
1582
1582
  return {
1583
1583
  JSXElement(node) {
1584
1584
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
1585
- node,
1586
1585
  context,
1586
+ node,
1587
1587
  polymorphicPropName,
1588
1588
  additionalComponents
1589
1589
  );
@@ -1652,8 +1652,8 @@ var no_unsafe_target_blank_default = createRule({
1652
1652
  return {
1653
1653
  JSXElement(node) {
1654
1654
  const [elementNameOnJsx, elementNameOnDom] = getElementNameOnJsxAndDom(
1655
- node,
1656
1655
  context,
1656
+ node,
1657
1657
  polymorphicPropName,
1658
1658
  additionalComponents
1659
1659
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "1.28.0-beta.1",
3
+ "version": "1.28.0-beta.6",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,17 +49,17 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.28.0-beta.1",
53
- "@eslint-react/core": "1.28.0-beta.1",
54
- "@eslint-react/jsx": "1.28.0-beta.1",
55
- "@eslint-react/shared": "1.28.0-beta.1",
56
- "@eslint-react/var": "1.28.0-beta.1",
57
- "@eslint-react/eff": "1.28.0-beta.1"
52
+ "@eslint-react/ast": "1.28.0-beta.6",
53
+ "@eslint-react/eff": "1.28.0-beta.6",
54
+ "@eslint-react/shared": "1.28.0-beta.6",
55
+ "@eslint-react/jsx": "1.28.0-beta.6",
56
+ "@eslint-react/core": "1.28.0-beta.6",
57
+ "@eslint-react/var": "1.28.0-beta.6"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.10",
61
61
  "@types/react-dom": "^19.0.4",
62
- "tsup": "^8.3.6",
62
+ "tsup": "^8.4.0",
63
63
  "@local/configs": "0.0.0"
64
64
  },
65
65
  "peerDependencies": {