Skip to content

Commit a841fa4

Browse files
authored
fix(deps): upgrade to React Compiler RC (#278)
1 parent d7793ef commit a841fa4

File tree

13 files changed

+374
-339
lines changed

13 files changed

+374
-339
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"matchPackageNames": ["react-compiler-runtime"],
18-
"followTag": "beta"
18+
"followTag": "rc"
1919
}
2020
]
2121
}

.github/workflows/react-compiler.yml

Lines changed: 2 additions & 2 deletions
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@beta babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
26+
- run: pnpm -r up --ignore-scripts react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@experimental
2727
- uses: actions/create-github-app-token@v1
2828
id: generate-token
2929
with:
@@ -39,7 +39,7 @@ jobs:
3939
- if: steps.check-changes.outputs.changed == 'true'
4040
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
4141
with:
42-
body: I ran `pnpm -r up react-compiler-runtime@beta babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta` 🧑‍💻
42+
body: I ran `pnpm -r up react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@experimental` 🧑‍💻
4343
branch: actions/react-compiler
4444
commit-message: "fix(deps): update react compiler dependencies 🤖 ✨"
4545
labels: 🤖 bot

eslint.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from '@eslint/js'
2+
import {defineConfig, globalIgnores} from 'eslint/config'
3+
import eslintConfigPrettier from 'eslint-config-prettier/flat'
4+
import reactPlugin from 'eslint-plugin-react'
5+
import reactHooksPlugin from 'eslint-plugin-react-hooks'
6+
import simpleImportSort from 'eslint-plugin-simple-import-sort'
7+
import tseslint from 'typescript-eslint'
8+
9+
export default defineConfig([
10+
globalIgnores(['dist', 'website/.next']),
11+
js.configs.recommended,
12+
tseslint.configs.recommended,
13+
eslintConfigPrettier,
14+
{
15+
plugins: {
16+
'simple-import-sort': simpleImportSort,
17+
'react': reactPlugin,
18+
'react-hooks': reactHooksPlugin,
19+
},
20+
rules: {
21+
'simple-import-sort/imports': 'error',
22+
'simple-import-sort/exports': 'error',
23+
'react-hooks/rules-of-hooks': 'error',
24+
'react-hooks/exhaustive-deps': 'error',
25+
'react-hooks/react-compiler': 'error',
26+
'@typescript-eslint/no-explicit-any': 'off',
27+
},
28+
},
29+
])

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"prettier": "@sanity/prettier-config",
7676
"dependencies": {
7777
"observable-callback": "^1.0.3",
78-
"react-compiler-runtime": "19.0.0-beta-af1b7da-20250417",
78+
"react-compiler-runtime": "19.1.0-rc.1",
7979
"use-effect-event": "^1.0.2"
8080
},
8181
"devDependencies": {
@@ -90,12 +90,10 @@
9090
"@typescript-eslint/eslint-plugin": "^8.29.0",
9191
"@typescript-eslint/parser": "^8.29.0",
9292
"@vitejs/plugin-react": "^4.3.4",
93-
"babel-plugin-react-compiler": "19.0.0-beta-af1b7da-20250417",
94-
"eslint": "^8.57.1",
93+
"babel-plugin-react-compiler": "rc",
94+
"eslint": "^9.22.0",
9595
"eslint-config-prettier": "^10.1.1",
96-
"eslint-plugin-prettier": "^5.2.5",
9796
"eslint-plugin-react": "^7.37.4",
98-
"eslint-plugin-react-compiler": "19.0.0-beta-af1b7da-20250417",
9997
"eslint-plugin-react-hooks": "experimental",
10098
"eslint-plugin-simple-import-sort": "^12.1.1",
10199
"jsdom": "^24.1.0",
@@ -106,6 +104,7 @@
106104
"rxjs": "^7.8.2",
107105
"semantic-release": "^24.2.3",
108106
"typescript": "5.7.3",
107+
"typescript-eslint": "^8.26.1",
109108
"vitest": "^3.1.1"
110109
},
111110
"peerDependencies": {

0 commit comments

Comments
 (0)