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(js_formatter): ensure interface call signatures match function formatting #1160

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

faultyserver
Copy link
Contributor

Summary

This is a follow up to #1153, realizing that a different diagnostic I was seeing was effectively the same issue: the return type not getting grouped properly with the rest of the function signature. In this case, it's just for call signatures in interface and type alias declarations rather than plain functions.

Test Plan

Removed one more prettier diff :)

Copy link

netlify bot commented Dec 12, 2023

Deploy Preview for biomejs ready!

Name Link
🔨 Latest commit 79f9250
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/65789b6a301ae2000814ec31
😎 Deploy Preview https://deploy-preview-1160--biomejs.netlify.app/playground
📱 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-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Dec 12, 2023
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

I wonder what's the compatibility now 🤔 great job!!

@faultyserver
Copy link
Contributor Author

I'm really curious to see what the report says! But for some reason when I run it locally it only shows one diff and it's definitely not the right one lol. haven't figured out why that's happening yet, though.

@faultyserver faultyserver merged commit 5b0888a into main Dec 12, 2023
18 checks passed
@faultyserver faultyserver deleted the faulty/ts-interface-return-grouping branch December 12, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants