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

Integrate yamlfmt iteself #2

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .yamlfmt
@@ -0,0 +1,7 @@
doublestar: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without doublestar, the exclude didn't work.
Looks different issue of google/yamlfmt#97

include:
- './**/*.{yaml,yml}'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

0.9.0, does not standardize quotation 🤔

- '.yamlfmt'
formatter:
type: basic
retain_line_breaks: true
2 changes: 2 additions & 0 deletions scripts/format.bash
Expand Up @@ -4,3 +4,5 @@ shfmt --language-dialect bash --write \
./**/*

dprint fmt

yamlfmt
2 changes: 2 additions & 0 deletions scripts/lint.bash
Expand Up @@ -9,3 +9,5 @@ shfmt --language-dialect bash --diff \
./**/*

dprint check

yamlfmt -lint