-
-
Notifications
You must be signed in to change notification settings - Fork 781
fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment #9618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(linter): turn oxc/no-redundant-constructor-init into typescript/no-unnecessary-parameter-property-assignment #9618
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via 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. |
CodSpeed Performance ReportMerging #9618 will not alter performanceComparing Summary
|
…o-unnecessary-parameter-property-assignment (oxc-project#9599)
f7662b1 to
fcd71e7
Compare
crates/oxc_linter/src/rules/typescript/no_unnecessary_parameter_property_assignment.rs
Show resolved
Hide resolved
|
Ok, let's do this in 2 PRs. |
## [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>
…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.
…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.
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.