Skip to content

Commit 6f16966

Browse files
authored
Fix forwardRef's ref should be excluded from check, closes #1332 (#1333)
1 parent d0f1c3b commit 6f16966

File tree

18 files changed

+60
-77
lines changed

18 files changed

+60
-77
lines changed

.pkgs/function-rules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"devDependencies": {
2727
"eslint": "^9.39.1",
28-
"tsdown": "^0.17.0-beta.4"
28+
"tsdown": "^0.17.0-beta.5"
2929
},
3030
"peerDependencies": {
3131
"eslint": "^9.39.1",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"sort-package-json": "^3.5.0",
8484
"tinyglobby": "^0.2.15",
8585
"ts-pattern": "^5.9.0",
86-
"tsdown": "^0.17.0-beta.4",
86+
"tsdown": "^0.17.0-beta.5",
8787
"tsx": "^4.21.0",
8888
"type-fest": "^5.2.0",
8989
"typedoc": "^0.28.15",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"devDependencies": {
5555
"@local/configs": "workspace:*",
56-
"tsdown": "^0.17.0-beta.4"
56+
"tsdown": "^0.17.0-beta.5"
5757
},
5858
"engines": {
5959
"node": ">=20.19.0"

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@local/configs": "workspace:*",
6161
"@types/react": "^19.2.7",
6262
"@types/react-dom": "^19.2.3",
63-
"tsdown": "^0.17.0-beta.4"
63+
"tsdown": "^0.17.0-beta.5"
6464
},
6565
"peerDependencies": {
6666
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@local/configs": "workspace:*",
6161
"@types/react": "^19.2.7",
6262
"@types/react-dom": "^19.2.3",
63-
"tsdown": "^0.17.0-beta.4"
63+
"tsdown": "^0.17.0-beta.5"
6464
},
6565
"peerDependencies": {
6666
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@local/configs": "workspace:*",
6262
"@types/react": "^19.2.7",
6363
"@types/react-dom": "^19.2.3",
64-
"tsdown": "^0.17.0-beta.4"
64+
"tsdown": "^0.17.0-beta.5"
6565
},
6666
"peerDependencies": {
6767
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@local/configs": "workspace:*",
6161
"@types/react": "^19.2.7",
6262
"@types/react-dom": "^19.2.3",
63-
"tsdown": "^0.17.0-beta.4"
63+
"tsdown": "^0.17.0-beta.5"
6464
},
6565
"peerDependencies": {
6666
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-web-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@local/configs": "workspace:*",
6060
"@types/react": "^19.2.7",
6161
"@types/react-dom": "^19.2.3",
62-
"tsdown": "^0.17.0-beta.4"
62+
"tsdown": "^0.17.0-beta.5"
6363
},
6464
"peerDependencies": {
6565
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-x/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@local/configs": "workspace:*",
6363
"@types/react": "^19.2.7",
6464
"@types/react-dom": "^19.2.3",
65-
"tsdown": "^0.17.0-beta.4"
65+
"tsdown": "^0.17.0-beta.5"
6666
},
6767
"peerDependencies": {
6868
"eslint": "^8.57.0 || ^9.0.0",

packages/plugins/eslint-plugin-react-x/src/rules/prefer-destructuring-assignment.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ ruleTester.run(RULE_NAME, rule, {
272272
export const App = memo(
273273
forwardRef<HTMLDivElement, Props>(
274274
function App({ day }, ref) {
275+
const onClick = () => { console.log(ref.current) };
275276
return <div ref={ref}>{day}</div>;
276277
}
277278
)

0 commit comments

Comments
 (0)