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 markdown #8564

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

wmontwe
Copy link
Member

@wmontwe wmontwe commented Nov 14, 2024

This is an attempt to fix the markdown formatting check failure by settings the prettier version explicitly and limit the parser to markdown.

@wmontwe wmontwe requested a review from cketti as a code owner November 14, 2024 11:48
@@ -40,7 +40,11 @@ fun SpotlessExtension.configureMarkdownCheck(
targets: List<String>,
) {
format("markdown") {
prettier()
prettier("3.3.3").config(
Copy link
Member

Choose a reason for hiding this comment

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

Is there any evidence that pinning the version to 3.3.3 fixes an issue? If so, we should add a comment explaining why this particular version was picked. If not, I think it's best to avoid explicitly specifying a version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why should we avoid specifying a version?

Copy link
Member

Choose a reason for hiding this comment

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

Because then we'll have to manage updates ourselves. In practice this probably means we'll keep using this version until spotless drops support for it and we're forced to deal with a potentially massive upgrade. In the meantime we might miss out on improvements we'd otherwise get for free.

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.

2 participants