Skip to content

Conversation

@ulrichstark
Copy link
Contributor

@ulrichstark ulrichstark commented Mar 8, 2025

Closes #9599

I switched the category to nursery because in a followup PR I will import all tests from typescript-eslint and attempt to fix all of them. This separation into two PRs makes the changes easier to review and preserves the history and original author of the lint rule.

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 8, 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-bug Category - Bug labels Mar 8, 2025
@ulrichstark ulrichstark marked this pull request as draft March 8, 2025 21:38
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 8, 2025

CodSpeed Performance Report

Merging #9618 will not alter performance

Comparing ulrichstark:rename-no-redundant-constructor-init-lint-rule (fcd71e7) with main (26da65d)

Summary

✅ 39 untouched benchmarks

@ulrichstark ulrichstark force-pushed the rename-no-redundant-constructor-init-lint-rule branch from f7662b1 to fcd71e7 Compare March 9, 2025 07:00
@github-actions github-actions bot added the A-cli Area - CLI label Mar 9, 2025
@ulrichstark ulrichstark changed the title fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment (#9599) Mar 9, 2025
@ulrichstark ulrichstark marked this pull request as ready for review March 9, 2025 07:12
@ulrichstark ulrichstark changed the title fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment (#9599) fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment Mar 9, 2025
@Boshen Boshen self-requested a review March 9, 2025 08:47
@ulrichstark ulrichstark requested a review from Boshen March 12, 2025 04:36
@Boshen Boshen merged commit ab594f1 into oxc-project:main Mar 12, 2025
37 checks passed
@Boshen
Copy link
Member

Boshen commented Mar 12, 2025

Ok, let's do this in 2 PRs.

Boshen added a commit that referenced this pull request Mar 12, 2025
## [0.15.15] - 2025-03-12

### Features

- 2ddad59 linter: Add unicorn/require-post-message-target-origin rule
(#9684) (yefan)
- 474a57b linter: A new multi-file analysis runtime (#9383) (branchseer)

### Bug Fixes

- 6c0978b linter: No-single-promise-in-promise-methods: do not fix
Promise.all when chained (#9697) (camchenry)
- ab594f1 linter: Turn oxc/no-redundant-constructor-init into
typescript/no-unnecessary-parameter-property-assignment (#9618) (Uli)
- 91c009a linter: Add missing fail cases in
`eslint-no-array-constructor` (#9659) (therewillbecode)
- 2810e5b linter: Add missing fail cases in eslint/no-self-compare
(#9693) (therewillbecode)

### Refactor

- b9ab60b linter: Remove if let nesting from `bad-min-max-function`
(#9722) (therewillbecode)
- 90b0227 linter: Remove if let nesting from
`eslint-operator-assignment` (#9721) (therewillbecode)
- 5ef578e linter: Improve `jest/no-alias-methods` (#9694)
(therewillbecode)

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
Boshen pushed a commit that referenced this pull request Mar 17, 2025
…meter_property_assignment (#9720)

Followup to #9618.
PRs for oxc/no-redundant-constructor-init: #9299 #9364
typescript-eslint rule:
[Docs](https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment)
[Source](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/rules/no-unnecessary-parameter-property-assignment.ts)
[Tests](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/tests/rules/no-unnecessary-parameter-property-assignment.test.ts)


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.
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 rename-no-redundant-constructor-init-lint-rule 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.

linter: redundant rule name

2 participants