eslint-plugin-react-x 3.0.0-next.47 → 3.0.0-next.48

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 +3 -5
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ const rules$7 = {
68
68
  //#endregion
69
69
  //#region package.json
70
70
  var name$6 = "eslint-plugin-react-x";
71
- var version = "3.0.0-next.47";
71
+ var version = "3.0.0-next.48";
72
72
 
73
73
  //#endregion
74
74
  //#region src/utils/create-rule.ts
@@ -2869,9 +2869,8 @@ function create$27(context) {
2869
2869
  }
2870
2870
  for (const { name, node: component } of fComponents) {
2871
2871
  if (name == null) continue;
2872
- if (core.isDirectValueOfRenderPropertyLoose(component)) continue;
2873
2872
  if (isInsideJSXAttributeValue(component)) {
2874
- if (!core.isDeclaredInRenderPropLoose(component)) context.report({
2873
+ context.report({
2875
2874
  messageId: "default",
2876
2875
  node: component,
2877
2876
  data: {
@@ -2892,8 +2891,7 @@ function create$27(context) {
2892
2891
  });
2893
2892
  continue;
2894
2893
  }
2895
- const enclosingComponent = findEnclosingComponent(component);
2896
- if (enclosingComponent != null && !core.isDirectValueOfRenderPropertyLoose(enclosingComponent)) {
2894
+ if (findEnclosingComponent(component) != null) {
2897
2895
  context.report({
2898
2896
  messageId: "default",
2899
2897
  node: component,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "3.0.0-next.47",
3
+ "version": "3.0.0-next.48",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,11 +45,11 @@
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-api-utils": "^2.4.0",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/ast": "3.0.0-next.47",
49
- "@eslint-react/core": "3.0.0-next.47",
50
- "@eslint-react/eff": "3.0.0-next.47",
51
- "@eslint-react/shared": "3.0.0-next.47",
52
- "@eslint-react/var": "3.0.0-next.47"
48
+ "@eslint-react/ast": "3.0.0-next.48",
49
+ "@eslint-react/core": "3.0.0-next.48",
50
+ "@eslint-react/eff": "3.0.0-next.48",
51
+ "@eslint-react/shared": "3.0.0-next.48",
52
+ "@eslint-react/var": "3.0.0-next.48"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^19.2.14",