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

Replace prettier hook with separate formatters for YAML and JSON #53

Merged
merged 5 commits into from
Aug 5, 2024

Conversation

alexdewar
Copy link
Collaborator

I've fiddled with the settings so that the JSON and YAML output looks similar to what we had before. I still think prettier did a better job in places, but this is good enough!

Fixes #52.

Copy link
Contributor

@AdrianDAlessandro AdrianDAlessandro left a comment

Choose a reason for hiding this comment

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

Seems fine overall. Would be annoying to change to for existing projects. But I guess it's fine for new ones.

schedule:
interval: "weekly"
interval: weekly
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this still work fine? Slightly annoying it's changing Dependabot's defaults / recommended format.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup! It's equivalent.

I'd probs rather have the double quotes too, but I can't be bothered to fight the formatter over it. Couldn't see an option for changing the quote type 😞

Copy link
Contributor

Choose a reason for hiding this comment

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

We should strive for a state of zen that allows us to accept whatever the formatter says is best.

@alexdewar alexdewar enabled auto-merge August 5, 2024 14:49
@alexdewar alexdewar merged commit 58c592d into main Aug 5, 2024
9 checks passed
@alexdewar alexdewar deleted the replace-prettier-hook branch August 5, 2024 14:58
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.

Replace deprecated prettier pre-commit hook
3 participants