Skip to content

Commit 014abed

Browse files
committed
update react hooks & compiler
1 parent 45228d8 commit 014abed

File tree

3 files changed

+152
-10
lines changed

3 files changed

+152
-10
lines changed

eslint.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import eslint from '@eslint/js';
2-
import { FlatCompat } from '@eslint/eslintrc';
32
import tseslint from 'typescript-eslint';
43
import importPlugin from 'eslint-plugin-import';
54
import jsxA11y from 'eslint-plugin-jsx-a11y';
65
import react from 'eslint-plugin-react';
7-
8-
const compat = new FlatCompat();
6+
import reactHooks from 'eslint-plugin-react-hooks';
7+
import reactCompiler from 'eslint-plugin-react-compiler';
98

109
export default tseslint.config(
1110
{ ignores: ['dist/', 'website/'] },
@@ -15,7 +14,8 @@ export default tseslint.config(
1514
jsxA11y.flatConfigs.recommended,
1615
react.configs.flat.recommended,
1716
react.configs.flat['jsx-runtime'],
18-
...compat.extends('plugin:react-hooks/recommended'),
17+
reactHooks.configs['recommended-latest'],
18+
reactCompiler.configs.recommended,
1919
{
2020
settings: {
2121
'import/resolver': { typescript: true },

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"eslint-plugin-import": "^2.31.0",
6565
"eslint-plugin-jsx-a11y": "^6.10.2",
6666
"eslint-plugin-react": "^7.37.4",
67-
"eslint-plugin-react-hooks": "^5.1.0",
67+
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
68+
"eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
6869
"happy-dom": "^16.7.2",
6970
"prettier": "^3.4.2",
7071
"ts-expect": "^1.3.0",

pnpm-lock.yaml

+146-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)