Skip to content

Comments

fix(linter): Add missing fail cases in eslint/no-self-compare#9693

Merged
Sysix merged 3 commits intooxc-project:mainfrom
therewillbecode:fix/no-self-compare
Mar 11, 2025
Merged

fix(linter): Add missing fail cases in eslint/no-self-compare#9693
Sysix merged 3 commits intooxc-project:mainfrom
therewillbecode:fix/no-self-compare

Conversation

@therewillbecode
Copy link
Contributor

@therewillbecode therewillbecode commented Mar 11, 2025

Handles parentheses wrapping the LHS and RHS of the binary operation so that the following missing test cases pass:

x > (x)

(x) == x

(x) >= ((x))

Eslint playground for these fail cases above can be found here.

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 11, 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 the A-linter Area - Linter label Mar 11, 2025
@therewillbecode therewillbecode changed the title Fix/no self compare fix(linter): Add missing fail cases in eslint/no-self-compare Mar 11, 2025
@github-actions github-actions bot added the C-bug Category - Bug label Mar 11, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 11, 2025

CodSpeed Performance Report

Merging #9693 will not alter performance

Comparing therewillbecode:fix/no-self-compare (e2c33a2) with main (835984f)

Summary

✅ 33 untouched benchmarks

@Sysix Sysix merged commit 2810e5b into oxc-project:main Mar 11, 2025
25 checks passed
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 <[email protected]>
@therewillbecode therewillbecode deleted the fix/no-self-compare branch March 13, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants