From c945bcafc2d8b4ee98dd16ea5e114a39d5fced4e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien <567105+nstepien@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:50:17 +0000 Subject: [PATCH] Test against React 19.0.0 (#3662) * Test against React 19.0.0 * ignore buggy lint --- .github/workflows/patch-react19.js | 12 ++++++------ package.json | 1 - src/HeaderRow.tsx | 2 ++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/patch-react19.js b/.github/workflows/patch-react19.js index d4d9193899..ea01f4dfa7 100644 --- a/.github/workflows/patch-react19.js +++ b/.github/workflows/patch-react19.js @@ -3,13 +3,13 @@ import fs from 'node:fs/promises'; const pkgText = await fs.readFile('./package.json', 'utf8'); const pkg = JSON.parse(pkgText); -pkg.devDependencies['@types/react'] = 'npm:types-react@rc'; -pkg.devDependencies['@types/react-dom'] = 'npm:types-react-dom@rc'; -pkg.devDependencies.react = 'rc'; -pkg.devDependencies['react-dom'] = 'rc'; +pkg.devDependencies['@types/react'] = '^19.0.0'; +pkg.devDependencies['@types/react-dom'] = '^19.0.0'; +pkg.devDependencies.react = '^19.0.0'; +pkg.devDependencies['react-dom'] = '^19.0.0'; pkg.overrides = { - '@types/react': 'npm:types-react@rc', - '@types/react-dom': 'npm:types-react-dom@rc' + '@types/react': '^19.0.0', + '@types/react-dom': '^19.0.0' }; fs.writeFile('./package.json', JSON.stringify(pkg, null, 2)); diff --git a/package.json b/package.json index 345e6cc192..80529e9ee0 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "@babel/preset-react": "^7.26.3", "@babel/preset-typescript": "^7.26.0", "@babel/runtime": "^7.26.0", - "@babel/traverse": "7.25.9", "@biomejs/biome": "1.9.4", "@eslint/compat": "^1.2.3", "@faker-js/faker": "^9.0.0", diff --git a/src/HeaderRow.tsx b/src/HeaderRow.tsx index 7b4c7cb755..166e3efdaf 100644 --- a/src/HeaderRow.tsx +++ b/src/HeaderRow.tsx @@ -58,6 +58,8 @@ function HeaderRow({ shouldFocusGrid, direction }: HeaderRowProps) { + // eslint-disable-next-line react-compiler/react-compiler + // eslint-disable-next-line react-hooks/rules-of-hooks const dragDropKey = useId(); const cells = [];