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(biome_service): add magic vue compiler macros to globals for vue single file components #2823

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented May 12, 2024

Summary

Vue has some magic compiler macros that are treated like globals when writing single file components. This makes it unnecessary for users to manually configure biome to treat them as globals.

closes #2771

Test Plan

Added a test.

@github-actions github-actions bot added the A-Project Area: project label May 12, 2024
@dyc3 dyc3 force-pushed the 05-12-fix_biome_service_add_magic_vue_compiler_macros_to_globals_for_vue_single_file_components branch from 331ece2 to 2a4f943 Compare May 13, 2024 11:41
@dyc3 dyc3 marked this pull request as ready for review May 13, 2024 11:47
@dyc3 dyc3 force-pushed the 05-12-fix_biome_service_add_magic_vue_compiler_macros_to_globals_for_vue_single_file_components branch from 2a4f943 to cb0b108 Compare May 13, 2024 12:18
@github-actions github-actions bot added the A-CLI Area: CLI label May 13, 2024
@dyc3 dyc3 force-pushed the 05-12-fix_biome_service_add_magic_vue_compiler_macros_to_globals_for_vue_single_file_components branch 2 times, most recently from 2f7eb26 to 77cafce Compare May 16, 2024 11:58
@dyc3
Copy link
Contributor Author

dyc3 commented May 16, 2024

Test (windows-latest) seems to be failing on main, and that previously passed on this PR so that's unrelated to the changes here.

@dyc3 dyc3 requested a review from ematipico May 16, 2024 12:08
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.

Can you add a changelog line to the changelog? https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#writing-a-changelog-line

After that, we can merge it!

@dyc3 dyc3 force-pushed the 05-12-fix_biome_service_add_magic_vue_compiler_macros_to_globals_for_vue_single_file_components branch from 77cafce to 23453b2 Compare May 16, 2024 14:19
@github-actions github-actions bot added the A-Changelog Area: changelog label May 16, 2024
@dyc3
Copy link
Contributor Author

dyc3 commented May 16, 2024

Not sure if I put it in the right section.

@dyc3 dyc3 requested a review from ematipico May 16, 2024 14:22
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.

Thank you!

@ematipico ematipico merged commit 5dee0e1 into biomejs:main May 16, 2024
8 of 10 checks passed
@dyc3 dyc3 deleted the 05-12-fix_biome_service_add_magic_vue_compiler_macros_to_globals_for_vue_single_file_components branch May 16, 2024 14:35
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-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 vue formatter does not recognize vue magic
2 participants