Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Aug 18, 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 Aug 18, 2025

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

Project Deployment Preview Comments Updated (UTC)
eslint-react Building Building Preview Comment Aug 18, 2025 3:20pm

@Rel1cx Rel1cx requested a review from Copilot August 18, 2025 15:21
@Rel1cx Rel1cx changed the title feat: add no-unused-props rule to recommended-type-checked preset, closes #1161 feat: add no-unused-props rule to recommended-type-checked preset, closes #1161 Aug 18, 2025
@Rel1cx Rel1cx merged commit 717fe4c into 2.0.0-beta Aug 18, 2025
6 of 12 checks passed
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 adds the no-unused-props rule to the recommended-type-checked preset configuration, addressing issue #1161. The rule warns about unused component prop declarations and is being enabled with a "warn" severity level.

  • Adds no-unused-props rule to both eslint-plugin and eslint-plugin-react-x recommended-type-checked configurations
  • Updates documentation to reflect the rule's inclusion in the recommended-type-checked preset
  • Maintains consistency between the two plugin configurations

Reviewed Changes

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

File Description
packages/plugins/eslint-plugin/src/configs/recommended-type-checked.ts Enables the no-unused-props rule with "warn" severity in the main plugin's type-checked preset
packages/plugins/eslint-plugin-react-x/src/configs/recommended-type-checked.ts Enables the no-unused-props rule with "warn" severity in the react-x plugin's type-checked preset
packages/plugins/eslint-plugin-react-x/src/rules/no-unused-props.md Updates documentation to indicate the rule is included in the recommended-type-checked preset

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

@Rel1cx Rel1cx deleted the recommended-type-checked branch August 18, 2025 19:51
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