Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Sep 8, 2025

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Test
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

@Rel1cx Rel1cx requested a review from Copilot September 8, 2025 09:08
@vercel
Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
eslint-react Ready Ready Preview Comment Sep 8, 2025 9:29am

@socket-security
Copy link

socket-security bot commented Sep 8, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​tsconfig/​vite-react@​7.0.0 ⏵ 7.0.1100 +11007889100
Updatedlefthook@​1.12.3 ⏵ 1.12.499 +810010093100
Updatedeslint-plugin-jsdoc@​54.4.0 ⏵ 54.5.09910010096 +1100

View full report

This comment was marked as outdated.

Rel1cx and others added 2 commits September 8, 2025 17:10
…y-use-callback.ts

Co-authored-by: Copilot <[email protected]>
Signed-off-by: REL1CX <[email protected]>
…direct-set-state-in-use-effect.ts

Co-authored-by: Copilot <[email protected]>
Signed-off-by: REL1CX <[email protected]>
@Rel1cx Rel1cx marked this pull request as ready for review September 8, 2025 09:14
@Rel1cx Rel1cx requested a review from Copilot September 8, 2025 09:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the hooks rules system by removing support for custom hook aliases and simplifying the core hook detection logic. The changes focus on standardizing hook detection to use built-in React hooks only.

  • Removes the additionalHooks configuration and related schemas from settings
  • Refactors hook detection functions to remove context dependencies and alias support
  • Removes deprecated rules and consolidates hook-related functionality

Reviewed Changes

Copilot reviewed 106 out of 107 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/shared/src/settings.ts Removes custom hooks schema and settings configuration
packages/core/src/hook/hook-is.ts Simplifies hook detection by removing context and alias support
packages/plugins/eslint-plugin-react-x/src/rules/*.ts Updates rules to use simplified hook detection
packages/plugins/eslint-plugin-react-hooks-extra/src/rules/*.ts Removes deprecated rules and updates remaining ones
packages/plugins/eslint-plugin-react-hooks-extra/src/plugin.ts Removes deprecated rule exports
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Rel1cx Rel1cx force-pushed the rework/hooks-rules branch from 66608f5 to 50cada0 Compare September 8, 2025 09:25
@Rel1cx Rel1cx merged commit 4135f2f into 2.0.0 Sep 8, 2025
8 of 9 checks passed
@Rel1cx Rel1cx deleted the rework/hooks-rules branch September 9, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants