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: new /// to-one-line command #35

Merged
merged 2 commits into from
Feb 15, 2025
Merged

Conversation

onmax
Copy link
Contributor

@onmax onmax commented Feb 10, 2025

Description

Added /// to-one-line as discussed in #34

Linked Issues

close #34

Additional context

We don't check the length of the output result at any time, because I don't think this command should do that.

Nor do I do it for ArrowFunctions arguments, as in my experience I would never use this command there, but I could be wrong.

If there is another node type you think I am missing or a test I am missing, let me know :)

Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for resonant-bonbon-a310e6 ready!

Name Link
🔨 Latest commit d1b9594
🔍 Latest deploy log https://app.netlify.com/sites/resonant-bonbon-a310e6/deploys/67a9a7a1e9a166000818a03a
😎 Deploy Preview https://deploy-preview-35--resonant-bonbon-a310e6.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.

@onmax onmax force-pushed the onmax/to-one-line branch 3 times, most recently from 990faa4 to 253423b Compare February 10, 2025 07:12
@onmax onmax force-pushed the onmax/to-one-line branch from 253423b to d1b9594 Compare February 10, 2025 07:15
@antfu antfu changed the title Added /// to-one-line feat: new /// to-one-line command Feb 15, 2025
@antfu
Copy link
Owner

antfu commented Feb 15, 2025

Btw you might be interested in https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md

@antfu antfu merged commit e449cbf into antfu:main Feb 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/// to-one-line
2 participants