Skip to content

Commit

Permalink
Upgrade to eslint-plugin-react-hooks RC, remove fixupPluginRules
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Sep 20, 2024
1 parent 8199672 commit cbff89d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
13 changes: 1 addition & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,18 +515,7 @@ const configArray = [
'import-x': eslintImportX,
'jsx-a11y': jsxA11y,
'react-x': reactX,
'react-hooks':
// Fix eslint-plugin-react-hooks for ESLint 9
//
// TODO: Remove this once eslint-plugin-react-hooks fully
// supports ESLint 9
// - https://github.com/facebook/react/pull/30774
// - https://github.com/facebook/react/issues/28313#issuecomment-2069701429
fixupPluginRules(
/** @type {import('@eslint/compat').FixupPluginDefinition} */ (
reactHooks
),
),
'react-hooks': reactHooks,
react: fixupPluginRules(react),
security,
sonarjs: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-plugin-import-x": "4.2.1",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-hooks": "5.1.0-rc-e740d4b1-20240919",
"eslint-plugin-react-x": "1.14.1",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-sonarjs": "1.0.4",
Expand Down
14 changes: 12 additions & 2 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 cbff89d

Please sign in to comment.