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) better check for hardline #235

Merged
merged 3 commits into from
Jun 18, 2021
Merged

Conversation

dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Jun 18, 2021

The check for hardline was insufficient. It could happen that one version of Prettier did create the docs, and another version of Prettier was used for strict reference equality of the hardline builder. Therefore do a deep equality check if the reference check fails.
This occurs for example for users using pnpm where the user's Prettier is resolved, but not the user's prettier-plugin-svelte.
Fixes #222

Simon Holthausen added 3 commits June 18, 2021 18:44
The check for hardline was insufficient. It could happen that one version of Prettier did create the docs, and another version of Prettier was used for strict reference equality of the hardline builder. Therefore do a deep equality check if the reference check fails.
Fixes sveltejs#222
@dummdidumm dummdidumm merged commit c50f5eb into sveltejs:master Jun 18, 2021
@dummdidumm dummdidumm deleted the fix-newline branch June 18, 2021 16:49
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.

Trailing newline in script and style blocks
1 participant