Skip to content

Commit

Permalink
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint…
Browse files Browse the repository at this point in the history
…-plugin-react-compiler' config (#3043)

* chore(eslint.config.mjs): update 'eslint-plugin-react-hooks' config to use 'recommended-latest'

* chore(package.json): update 'eslint-plugin-react-hooks' to latest version

* chore(pnpm-lock.yaml): relfect 'package.json'

* chore(package.json): update 'eslint-plugin-react-compiler' to latest version

* chore(pnpm-lock.yaml): reflect 'package.json'

* chore(eslint.config.mjs): update 'eslint-plugin-react-compiler' config
  • Loading branch information
sukvvon authored Mar 11, 2025
1 parent 9ba6a63 commit f85898f
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 140 deletions.
8 changes: 2 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ export default tseslint.config(
tseslint.configs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
reactHooks.configs['recommended-latest'],
reactCompiler.configs.recommended,
{
plugins: {
'react-compiler': reactCompiler,
'react-hooks': reactHooks,
},
settings: {
react: {
version: 'detect',
Expand Down Expand Up @@ -74,8 +72,6 @@ export default tseslint.config(
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'react-compiler/react-compiler': 'warn',
...reactHooks.configs.recommended.rules,
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-compiler": "19.0.0-beta-63e3235-20250105",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-compiler": "19.0.0-beta-bafa41b-20250307",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-testing-library": "^7.1.1",
"immer": "^10.1.1",
"jsdom": "^25.0.1",
Expand Down
Loading

0 comments on commit f85898f

Please sign in to comment.