-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Apply Yaml pre-commit formatter #1689
Conversation
Doesn't seem like there are any yaml formatting pre-commit hooks that are amenable to our current yaml formatting. I found three options:
@zaneselvans what yaml formatter are you using? |
I've been doing the formatting by hand, but then occasionally VS Code or gvim seems to have strong opinions about indentation. It looks like with |
Poking around to try and find a way to integrate |
Not totally sure what the conflict is in the |
https://prettier.io/ is also an option. It offers a pre-commit and a vscode extension but it can't be configured like the red hat extension. The Red Hat extension doesn't offer a pre-commit or command-line tool. |
Ooo I like prettier:
One con is that it puts each year on its own line in the settings files. |
Widespread support seems like a strong reason to use it. It seems like it's putting years on individual lines sometimes but not others and I'm not sure why. I'm fine with whatever you choose! The most important thing is we can have something standardized and well supported. |
Changes:
|
Folks have different YAML formatters in our code editors so we need a pre-commit hook to do the formatting for us!