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

refactor(lint/useTopLevelRegex): ignore regular expressions with the g and/or y flags #2926

Conversation

lucasweng
Copy link
Contributor

Summary

Test Plan

I updated the tests.

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels May 21, 2024
Copy link

codspeed-hq bot commented May 21, 2024

CodSpeed Performance Report

Merging #2926 will not alter performance

Comparing lucasweng:refactor/useTopLevelRegex/ignore-regex-with-gy-flags (7740b79) with main (8f3c811)

Summary

✅ 92 untouched benchmarks

Copy link
Member

@Conaclos Conaclos left a comment

Choose a reason for hiding this comment

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

Thanks!

@lucasweng Could you update the rule description to add a paragraph about this exception and an example in Valid?

@github-actions github-actions bot added the A-Project Area: project label May 21, 2024
@Conaclos Conaclos merged commit ceca2b4 into biomejs:main May 21, 2024
12 checks passed
@lucasweng lucasweng deleted the refactor/useTopLevelRegex/ignore-regex-with-gy-flags branch May 22, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter A-Project Area: project L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 useTopLevelRegex: Handle regex flags correctly
2 participants