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(lint/useSingleVarDeclarator): output valid code when declarators are on multilines #1070

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Dec 5, 2023

Summary

Fix #728.

I also take the opportunity of adding more details in the rule description.

Test Plan

I added an anti-regression test and other tests.

Copy link

netlify bot commented Dec 5, 2023

Deploy Preview for biomejs ready!

Name Link
🔨 Latest commit 60d0b50
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/6570535d7cf90e0007a9a4ab
😎 Deploy Preview https://deploy-preview-1070--biomejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages A-Changelog Area: changelog labels Dec 5, 2023
@Conaclos Conaclos changed the title fix(lint/useSingleVarDeclarator): output valid code when declarators … fix(lint/useSingleVarDeclarator): output valid code when declarators are on distinct lines Dec 5, 2023
@Conaclos Conaclos changed the title fix(lint/useSingleVarDeclarator): output valid code when declarators are on distinct lines fix(lint/useSingleVarDeclarator): output valid code when declarators are on multilines Dec 5, 2023
@Conaclos Conaclos requested review from a team December 6, 2023 10:14
@Conaclos Conaclos force-pushed the conaclos/lint/useSingleVarDeclarator/728 branch 3 times, most recently from 2979f4d to 60d0b50 Compare December 6, 2023 10:56
@Conaclos Conaclos merged commit b5fa5af into main Dec 6, 2023
19 checks passed
@Conaclos Conaclos deleted the conaclos/lint/useSingleVarDeclarator/728 branch December 6, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💅 useSingleVarDeclarator suggests non-working code
2 participants