Skip to content

Commit

Permalink
eslint-plugin-react-hooks 5 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat authored Oct 16, 2024
1 parent dcc9437 commit f88b182
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .changeset/eight-kiwis-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'eslint-config-seek': minor
---

Upgrade `eslint-plugin-react-hooks` to version 5, removing the need for `@eslint/compat`.

`eslint-plugin-react-hooks` contains some minor rule changes. [Refer to the release notes](https://github.com/facebook/react/releases/tag/eslint-plugin-react-hooks%405.0.0) for more information.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const react = require('eslint-plugin-react');
const reactHooks = require('eslint-plugin-react-hooks');
const base = require('./base');
const { fixupPluginRules } = require('@eslint/compat');

const globals = require('globals');

Expand Down Expand Up @@ -30,7 +29,7 @@ module.exports = [
{
plugins: {
react,
'react-hooks': fixupPluginRules(reactHooks),
'react-hooks': reactHooks,
},

languageOptions: {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@
},
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
"dependencies": {
"@eslint/compat": "^1.1.1",
"typescript-eslint": "^8.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-import-x": "^4.2.1",
"eslint-plugin-jest": "^28.8.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-hooks": "^5.0.0",
"globals": "^15.9.0"
},
"devDependencies": {
Expand Down
21 changes: 6 additions & 15 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 f88b182

Please sign in to comment.