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

Add astro components to parser blocklist #340

Merged
merged 2 commits into from Nov 24, 2023

Conversation

mattlyons0
Copy link
Contributor

Fixes #332

Adds a test for astro components (which are currently failing to parse) then adds astro components to the parser blocklist (which causes the test to pass, as they are skipped).

Astro component files are similar to all of the other blocked component files in that they may contain styles as well as markup, and they just happen to cause errors in styles parsing (the same error as Svelte components actually), so I think its reasonable to skip them for the same reasons as the other component types.

Copy link
Member

@BPScott BPScott left a comment

Choose a reason for hiding this comment

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

Thanks!

CI errors are due to an outdated jest-preset-stylelint, which has been fixed elsewhere. Running locally works. I'm confident they'll pass when ran on main, and this PR is rebased atop the fix

@BPScott BPScott merged commit 0a68676 into prettier:main Nov 24, 2023
0 of 3 checks passed
@mattlyons0
Copy link
Contributor Author

Appreciate it!

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.

Parsing error: Unexpected token when used with stylelint-config-html
2 participants