Skip to content

feat(linter): Add suggested fix to typescript/no_unnecessary_parameter_property_assignment and fix false positive#9973

Merged
shulaoda merged 2 commits intooxc-project:mainfrom
ulrichstark:improve-lint-rule-2025-03-22
Mar 24, 2025
Merged

feat(linter): Add suggested fix to typescript/no_unnecessary_parameter_property_assignment and fix false positive#9973
shulaoda merged 2 commits intooxc-project:mainfrom
ulrichstark:improve-lint-rule-2025-03-22

Conversation

@ulrichstark
Copy link
Contributor

Hey, I just added a suggested fix to the lint rule as continuation of my work in #9720 and #9618.
The original typescript-eslint rule isn't capable of fixing its reported issue, but the fix should be pretty safe.
I decided to configure it as suggestion and not as 100% safe fix.
Also found one false positive while implementing the fix suggestion, fixed it and added a corresponding passing test.

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 22, 2025

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 hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-linter Area - Linter C-enhancement Category - New feature or request labels Mar 22, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 22, 2025

CodSpeed Instrumentation Performance Report

Merging #9973 will not alter performance

Comparing ulrichstark:improve-lint-rule-2025-03-22 (6cc85e3) with main (ff13be6)

Summary

✅ 33 untouched benchmarks

@Boshen Boshen requested a review from shulaoda March 23, 2025 05:19
@ulrichstark ulrichstark requested a review from shulaoda March 23, 2025 18:34
@shulaoda shulaoda merged commit 24cbe51 into oxc-project:main Mar 24, 2025
24 checks passed
@ulrichstark ulrichstark deleted the improve-lint-rule-2025-03-22 branch March 28, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants