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

feat(linter): add useConsistentNewBuiltin #2540

Merged
merged 13 commits into from
Apr 24, 2024

Conversation

minht11
Copy link
Contributor

@minht11 minht11 commented Apr 20, 2024

Summary

Closes #2539

Implements unicorn/new-for-builtins
Example: Date() -> new Date()

This is my first time writing Rust, so I wasn't quite sure which things to use where.

Test Plan

added tests and snapshots

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Diagnostic Area: diagnostocis labels Apr 20, 2024
Copy link

codspeed-hq bot commented Apr 21, 2024

CodSpeed Performance Report

Merging #2540 will not alter performance

Comparing minht11:feat/useNewForBuiltins (dc1f690) with main (b120c98)

Summary

✅ 93 untouched benchmarks

@minht11 minht11 marked this pull request as draft April 21, 2024 21:28
@minht11 minht11 changed the title feat(linter): add useNewForBuiltins feat(linter): add useConsistentNewBuiltin Apr 22, 2024
@minht11 minht11 marked this pull request as ready for review April 22, 2024 10:29
@github-actions github-actions bot added the A-Parser Area: parser label Apr 22, 2024
@ematipico
Copy link
Member

Can you fix the conflict @minht11 ?

@ematipico ematipico merged commit b3e5768 into biomejs:main Apr 24, 2024
11 of 12 checks passed
@minht11 minht11 deleted the feat/useNewForBuiltins branch April 24, 2024 09:53
@Conaclos Conaclos added the A-Changelog Area: changelog label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-CLI Area: CLI A-Diagnostic Area: diagnostocis A-Linter Area: linter A-Parser Area: parser A-Project Area: project L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 ImplementuseConsistentNewBuiltin - unicorn/new-for-builtins
3 participants