eslint-plugin-react-x 1.24.2-next.2 → 1.25.0

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
@@ -42,7 +42,7 @@ var ts__default = /*#__PURE__*/_interopDefault(ts);
42
42
 
43
43
  // package.json
44
44
  var name = "eslint-plugin-react-x";
45
- var version = "1.24.2-next.2";
45
+ var version = "1.25.0";
46
46
  var createRule = shared.createRuleForPlugin("x");
47
47
 
48
48
  // src/rules/avoid-shorthand-boolean.ts
@@ -1408,8 +1408,8 @@ function getComponentPropsFixes(node, typeArguments, fixer, context) {
1408
1408
  getText(typeArg1),
1409
1409
  "&",
1410
1410
  "{",
1411
- `ref:`,
1412
- `React.RefObject<${getText(typeArg0)}>`,
1411
+ `ref?:`,
1412
+ `React.RefObject<${getText(typeArg0)} | null>`,
1413
1413
  "}"
1414
1414
  ].join(" ")
1415
1415
  ),
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
15
15
 
16
16
  // package.json
17
17
  var name = "eslint-plugin-react-x";
18
- var version = "1.24.2-next.2";
18
+ var version = "1.25.0";
19
19
  var createRule = createRuleForPlugin("x");
20
20
 
21
21
  // src/rules/avoid-shorthand-boolean.ts
@@ -1381,8 +1381,8 @@ function getComponentPropsFixes(node, typeArguments, fixer, context) {
1381
1381
  getText(typeArg1),
1382
1382
  "&",
1383
1383
  "{",
1384
- `ref:`,
1385
- `React.RefObject<${getText(typeArg0)}>`,
1384
+ `ref?:`,
1385
+ `React.RefObject<${getText(typeArg0)} | null>`,
1386
1386
  "}"
1387
1387
  ].join(" ")
1388
1388
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.24.2-next.2",
3
+ "version": "1.25.0",
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",
@@ -48,12 +48,12 @@
48
48
  "is-immutable-type": "^5.0.1",
49
49
  "string-ts": "^2.2.0",
50
50
  "ts-pattern": "^5.6.2",
51
- "@eslint-react/ast": "1.24.2-next.2",
52
- "@eslint-react/core": "1.24.2-next.2",
53
- "@eslint-react/eff": "1.24.2-next.2",
54
- "@eslint-react/jsx": "1.24.2-next.2",
55
- "@eslint-react/var": "1.24.2-next.2",
56
- "@eslint-react/shared": "1.24.2-next.2"
51
+ "@eslint-react/core": "1.25.0",
52
+ "@eslint-react/ast": "1.25.0",
53
+ "@eslint-react/eff": "1.25.0",
54
+ "@eslint-react/shared": "1.25.0",
55
+ "@eslint-react/jsx": "1.25.0",
56
+ "@eslint-react/var": "1.25.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^19.0.8",