Skip to content

Comments

fix(linter): import and fix tests for typescript::no_unnecessary_parameter_property_assignment#9720

Merged
Boshen merged 9 commits intooxc-project:mainfrom
ulrichstark:fix-no-unnecessary-parameter-property-assignment
Mar 17, 2025
Merged

fix(linter): import and fix tests for typescript::no_unnecessary_parameter_property_assignment#9720
Boshen merged 9 commits intooxc-project:mainfrom
ulrichstark:fix-no-unnecessary-parameter-property-assignment

Conversation

@ulrichstark
Copy link
Contributor

@ulrichstark ulrichstark commented Mar 12, 2025

Followup to #9618.
PRs for oxc/no-redundant-constructor-init: #9299 #9364
typescript-eslint rule: Docs Source Tests

Changes of this PR:

  • Imported tests from typescript-eslint
  • Added one more passing test to the end
  • Fixed all new test cases
  • Changed rule category back to correctness

This is my first major change to OXC.
If there's anything wrong or not the OXC-way, I will happily improve on that.

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 12, 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.

@ulrichstark ulrichstark marked this pull request as draft March 12, 2025 15:01
@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels Mar 12, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 12, 2025

CodSpeed Performance Report

Merging #9720 will not alter performance

Comparing ulrichstark:fix-no-unnecessary-parameter-property-assignment (f61c9d2) with main (227d203)

Summary

✅ 33 untouched benchmarks

@ulrichstark ulrichstark force-pushed the fix-no-unnecessary-parameter-property-assignment branch from c3b74a5 to 094fb55 Compare March 15, 2025 19:12
@github-actions github-actions bot added the A-cli Area - CLI label Mar 15, 2025
@ulrichstark ulrichstark force-pushed the fix-no-unnecessary-parameter-property-assignment branch from 4dee3cf to f61c9d2 Compare March 15, 2025 20:53
@ulrichstark ulrichstark marked this pull request as ready for review March 15, 2025 21:10
@Boshen
Copy link
Member

Boshen commented Mar 17, 2025

Nice work!

@Boshen Boshen merged commit e6f7c74 into oxc-project:main Mar 17, 2025
26 checks passed
shulaoda pushed a commit that referenced this pull request Mar 24, 2025
…eter_property_assignment` and fix false positive (#9973)

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.
@ulrichstark ulrichstark deleted the fix-no-unnecessary-parameter-property-assignment branch March 28, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants