Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Nov 3, 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

@vercel
Copy link

vercel bot commented Nov 3, 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 Nov 3, 2025 5:06am

@Rel1cx Rel1cx changed the title Deprecate no-forbidden-props rule Deprecate react-x/no-forbidden-props rule Nov 3, 2025
@Rel1cx Rel1cx requested a review from Copilot November 3, 2025 04:59
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 deprecates the no-forbidden-props rule in eslint-plugin-react-x. The rule is being deprecated because AST-based component props restrictions can be easily bypassed and the rule is not significantly more effective than using no-restricted-syntax. The recommendation is to use static type checking instead.

  • Marks the rule as deprecated in the rule metadata
  • Adds deprecation notice to the rule documentation
  • Removes the rule from the active rules overview table
  • Adds an entry to the removed rules documentation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/plugins/eslint-plugin-react-x/src/rules/no-forbidden-props.ts Adds deprecated: true to the rule's meta configuration
packages/plugins/eslint-plugin-react-x/src/rules/no-forbidden-props.mdx Adds a warning callout explaining the deprecation rationale
apps/website/content/docs/rules/overview.mdx Removes the rule from the active rules table
apps/website/content/docs/removed.mdx Adds the rule to the removed/deprecated rules list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Rel1cx Rel1cx force-pushed the deprecate-no-forbidden-props branch from 054a365 to 270e6c9 Compare November 3, 2025 05:03
@Rel1cx Rel1cx merged commit d089bee into main Nov 3, 2025
10 of 11 checks passed
@Rel1cx Rel1cx deleted the deprecate-no-forbidden-props branch November 3, 2025 05:04
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