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 (#1071)

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

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

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

* chore(eslint.config.mjs): update 'eslint-plugin-react-compiler' config
  • Loading branch information
sukvvon authored Mar 11, 2025
1 parent 75097c8 commit cfd41f4
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 55 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-testing-library": "^7.1.1",
"jest-leak-detector": "^29.7.0",
"jsdom": "^26.0.0",
Expand Down
Loading

0 comments on commit cfd41f4

Please # to comment.