-
Notifications
You must be signed in to change notification settings - Fork 954
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
Enforce fmt. of *.{md,js,html,yml}
with prettier
#6368
base: trunk
Are you sure you want to change the base?
Enforce fmt. of *.{md,js,html,yml}
with prettier
#6368
Conversation
89b9537
to
e1af03a
Compare
- name: "Format `**/*.{md,js,html,yml}` files" | ||
uses: creyD/[email protected] | ||
with: | ||
prettier_version: 3.3.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we lift this to an env_var in the table up top.
.prettierrc.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need to exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because otherwise, prettier
tries to format these files. I didn't think it was valuable to do that, since these files are handled with automation.
Thoughts, @gfx-rs/naga?
*.{md,js,html,yml}
with prettier
4b79e76
to
97522db
Compare
60a544d
to
4bceb5d
Compare
615fff9
to
feac44d
Compare
feac44d
to
efe731b
Compare
This actually may enforce the format of other files than these, but it's unlikely.
efe731b
to
6629758
Compare
Connections
-
Description
Title says all. See commits for more details.
Testing
CI!
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.Add change toNot necessary.CHANGELOG.md
. See simple instructions inside file.prettier
wants to change, to get parity with other tools.