Skip to content

Commit

Permalink
update react hooks & compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 26, 2025
1 parent 45228d8 commit 014abed
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 10 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import eslint from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';
import tseslint from 'typescript-eslint';
import importPlugin from 'eslint-plugin-import';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import react from 'eslint-plugin-react';

const compat = new FlatCompat();
import reactHooks from 'eslint-plugin-react-hooks';
import reactCompiler from 'eslint-plugin-react-compiler';

export default tseslint.config(
{ ignores: ['dist/', 'website/'] },
Expand All @@ -15,7 +14,8 @@ export default tseslint.config(
jsxA11y.flatConfigs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
...compat.extends('plugin:react-hooks/recommended'),
reactHooks.configs['recommended-latest'],
reactCompiler.configs.recommended,
{
settings: {
'import/resolver': { typescript: true },
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
"eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
"happy-dom": "^16.7.2",
"prettier": "^3.4.2",
"ts-expect": "^1.3.0",
Expand Down
151 changes: 146 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 014abed

Please sign in to comment.