Skip to content
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): Fix unicorn/prefer-query-selector to use the correct replacement for getElementsByClassName #7796

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

nrayburn-tech
Copy link
Contributor

Note: This uses a regex to replace multiple instances of whitespace with .. May not be the most performant, so if there's a simple alternative I can change to that instead.

cc @camc314, I know this was assigned to you but I just wanted to throw something quick together while I had a minute. Feel free to use this, or decline it and write your own.

Fixes #7794.

Copy link

graphite-app bot commented Dec 11, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels Dec 11, 2024
Copy link

codspeed-hq bot commented Dec 11, 2024

CodSpeed Performance Report

Merging #7796 will not alter performance

Comparing nrayburn-tech:fix-prefer-query-selector (3c25fb8) with main (bb22c67)

Summary

✅ 29 untouched benchmarks

@nrayburn-tech nrayburn-tech marked this pull request as draft December 11, 2024 04:54
@camc314 camc314 self-assigned this Dec 11, 2024
Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

perf regression is unrelated

@camc314 camc314 requested a review from Boshen December 11, 2024 08:38
@camc314 camc314 marked this pull request as ready for review December 11, 2024 08:39
@Boshen Boshen merged commit 06e6d38 into oxc-project:main Dec 11, 2024
26 checks passed
Boshen added a commit that referenced this pull request Dec 13, 2024
## [0.15.1] - 2024-12-13

### Features

- 38b1c2e editor: Create a command to apply all auto-fixes for the
current active text editor (#7672) (Nicholas Rayburn)

### Bug Fixes

- 2b187e5 linter: Fix configuration casing for
`typescript/no_this_alias` (#7836) (Boshen)
- 06e6d38 linter: Fix unicorn/prefer-query-selector to use the correct
replacement for getElementsByClassName (#7796) (Nicholas Rayburn)
- 7a83230 semantic: Missing reference when `export default` references a
type alias binding (#7813) (Dunqing)

Co-authored-by: Boshen <[email protected]>
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.

prefer-query-selector fixer is incorrect and breaks code
3 participants