Skip to content

refactor(linter): remove custom react perf lint rule trait#24082

Merged
graphite-app[bot] merged 1 commit into
mainfrom
07-02-refactor_linter_remove_custom_react_perf_lint_rule_trait
Jul 2, 2026
Merged

refactor(linter): remove custom react perf lint rule trait#24082
graphite-app[bot] merged 1 commit into
mainfrom
07-02-refactor_linter_remove_custom_react_perf_lint_rule_trait

Conversation

@camchenry

@camchenry camchenry commented Jul 2, 2026

Copy link
Copy Markdown
Member

The rule trait here is convenient, but is inconsistent with the style and architecture of other linter rules. Removing this trait allows the linter codegen to understand this rule better, which enables performance optimizations not currently allowed with this style. It also makes these lint rules less "clean" but more consistent with every other lint rule that we have, which makes this easier to maintain in the long term.

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the A-linter Area - Linter label Jul 2, 2026
@camchenry
camchenry marked this pull request as ready for review July 2, 2026 17:17
@camchenry
camchenry requested a review from camc314 as a code owner July 2, 2026 17:17
@camchenry camchenry added the 0-merge Merge with Graphite Merge Queue label Jul 2, 2026

camchenry commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • Jul 2, 5:17 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 2, 5:17 PM UTC: camchenry added this pull request to the Graphite merge queue.
  • Jul 2, 5:23 PM UTC: The Graphite merge queue couldn't merge this PR because it failed for an unknown reason (All comments in this PR must be resolved before merging. Once you've resolved all open comment threads, you can retry your merge.).
  • Jul 2, 5:37 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 2, 5:37 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Jul 2, 5:38 PM UTC: Merged by the Graphite merge queue.

The rule trait here is convenient, but is inconsistent with the style and architecture of other linter rules. Removing this trait allows the linter codegen to understand this rule better, which enables performance optimizations not currently allowed with this style. It also makes these lint rules less "clean" but more consistent with every other lint rule that we have, which makes this easier to maintain in the long term.
@graphite-app
graphite-app Bot force-pushed the 07-02-refactor_linter_remove_custom_react_perf_lint_rule_trait branch from bc94678 to 49d5a76 Compare July 2, 2026 17:19
Comment thread crates/oxc_linter/src/utils/react_perf.rs
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jul 2, 2026

@camc314 camc314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💪 nice!

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jul 2, 2026
@graphite-app
graphite-app Bot merged commit 49d5a76 into main Jul 2, 2026
31 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jul 2, 2026
@graphite-app
graphite-app Bot deleted the 07-02-refactor_linter_remove_custom_react_perf_lint_rule_trait branch July 2, 2026 17:38
camc314 pushed a commit that referenced this pull request Jul 3, 2026
The rule trait here is convenient, but is inconsistent with the style and architecture of other linter rules. Removing this trait allows the linter codegen to understand this rule better, which enables performance optimizations not currently allowed with this style. It also makes these lint rules less "clean" but more consistent with every other lint rule that we have, which makes this easier to maintain in the long term.
camc314 pushed a commit that referenced this pull request Jul 3, 2026
The rule trait here is convenient, but is inconsistent with the style and architecture of other linter rules. Removing this trait allows the linter codegen to understand this rule better, which enables performance optimizations not currently allowed with this style. It also makes these lint rules less "clean" but more consistent with every other lint rule that we have, which makes this easier to maintain in the long term.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants