Skip to content

Commit 9a10269

Browse files
fix(deps): update React Compiler dependencies 🤖 ✨ (#308)
* fix(deps): update react compiler dependencies 🤖 ✨ * chore: update linting * chore: fix linter issues --------- Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com> Co-authored-by: Cody Olsen <[email protected]>
1 parent 6099f3e commit 9a10269

File tree

7 files changed

+516
-277
lines changed

7 files changed

+516
-277
lines changed

‎.github/renovate.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
"matchPackageNames": ["observable-callback", "use-effect-event"],
1313
"rangeStrategy": "bump",
1414
"semanticCommitType": "fix"
15-
},
16-
{
17-
"matchPackageNames": ["react-compiler-runtime"],
18-
"followTag": "rc"
19-
},
20-
{
21-
"matchPackageNames": ["eslint-plugin-react-hooks"],
22-
"followTag": "experimental"
2315
}
2416
]
2517
}

‎.github/workflows/react-compiler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
cache: pnpm
2525
node-version: lts/*
26-
- run: pnpm -r up --ignore-scripts react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@experimental
26+
- run: pnpm -r up --ignore-scripts react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@rc eslint-plugin-react-hooks-with-use-effect-event@npm:eslint-plugin-react-hooks@experimental
2727
- uses: actions/create-github-app-token@v2
2828
id: generate-token
2929
with:

‎eslint.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {defineConfig, globalIgnores} from 'eslint/config'
33
import eslintConfigPrettier from 'eslint-config-prettier/flat'
44
import reactPlugin from 'eslint-plugin-react'
55
import reactHooksPlugin from 'eslint-plugin-react-hooks'
6+
import reactHooksPluginWithUseEffectEvent from 'eslint-plugin-react-hooks-with-use-effect-event'
67
import simpleImportSort from 'eslint-plugin-simple-import-sort'
78
import tseslint from 'typescript-eslint'
89

@@ -11,18 +12,19 @@ export default defineConfig([
1112
js.configs.recommended,
1213
tseslint.configs.recommended,
1314
eslintConfigPrettier,
15+
...reactHooksPlugin.configs['flat/recommended'],
1416
{
1517
plugins: {
1618
'simple-import-sort': simpleImportSort,
1719
'react': reactPlugin,
18-
'react-hooks': reactHooksPlugin,
20+
'react-hooks-with-use-effect-event': reactHooksPluginWithUseEffectEvent,
1921
},
2022
rules: {
2123
'simple-import-sort/imports': 'error',
2224
'simple-import-sort/exports': 'error',
23-
'react-hooks/rules-of-hooks': 'error',
24-
'react-hooks/exhaustive-deps': 'error',
25-
'react-hooks/react-compiler': 'error',
25+
// This rule understands useEffectEvent, unlike the original react-hooks plugin
26+
'react-hooks-with-use-effect-event/exhaustive-deps': 'error',
27+
'react-hooks/exhaustive-deps': 'off',
2628
'@typescript-eslint/no-explicit-any': 'off',
2729
},
2830
},

‎package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@
7575
"prettier": "@sanity/prettier-config",
7676
"dependencies": {
7777
"observable-callback": "^1.0.3",
78-
"react-compiler-runtime": "19.1.0-rc.2",
78+
"react-compiler-runtime": "19.1.0-rc.3",
7979
"use-effect-event": "^2.0.3"
8080
},
8181
"devDependencies": {
82+
"@sanity/browserslist-config": "^1.0.5",
8283
"@sanity/pkg-utils": "^7.8.0",
8384
"@sanity/prettier-config": "^1.0.6",
8485
"@sanity/semantic-release-preset": "^5.0.0",
@@ -87,14 +88,15 @@
8788
"@types/node": "^22.15.3",
8889
"@types/react": "^19.1.8",
8990
"@types/react-dom": "^19.1.6",
90-
"@typescript-eslint/eslint-plugin": "^8.34.1",
91-
"@typescript-eslint/parser": "^8.34.1",
91+
"@typescript-eslint/eslint-plugin": "^8.41.0",
92+
"@typescript-eslint/parser": "^8.41.0",
9293
"@vitejs/plugin-react": "^4.5.2",
93-
"babel-plugin-react-compiler": "19.1.0-rc.2",
94-
"eslint": "^9.29.0",
95-
"eslint-config-prettier": "^10.1.5",
94+
"babel-plugin-react-compiler": "19.1.0-rc.3",
95+
"eslint": "^9.34.0",
96+
"eslint-config-prettier": "^10.1.8",
9697
"eslint-plugin-react": "^7.37.5",
97-
"eslint-plugin-react-hooks": "0.0.0-experimental-79d9aed7-20250620",
98+
"eslint-plugin-react-hooks": "6.0.0-rc.2",
99+
"eslint-plugin-react-hooks-with-use-effect-event": "npm:[email protected]",
98100
"eslint-plugin-simple-import-sort": "^12.1.1",
99101
"jsdom": "^24.1.0",
100102
"prettier": "^3.5.3",
@@ -104,7 +106,7 @@
104106
"rxjs": "^7.8.2",
105107
"semantic-release": "^24.2.7",
106108
"typescript": "5.8.3",
107-
"typescript-eslint": "^8.34.1",
109+
"typescript-eslint": "^8.41.0",
108110
"vitest": "^3.2.4"
109111
},
110112
"peerDependencies": {

0 commit comments

Comments
 (0)