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

Enforce fmt. of *.{md,js,html,yml} with prettier #6368

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Oct 4, 2024

Connections

-

Description

Title says all. See commits for more details.

Testing

CI!

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file. Not necessary.
  • UX for failures is awful; need a get a diff. of what prettier wants to change, to get parity with other tools.

@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 3 times, most recently from 89b9537 to e1af03a Compare October 10, 2024 20:30
- name: "Format `**/*.{md,js,html,yml}` files"
uses: creyD/[email protected]
with:
prettier_version: 3.3.3
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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?

@ErichDonGubler ErichDonGubler changed the title Enforce fmt. of *.{md,js,html,yml} with prettier Enforce fmt. of *.{md,js,html,yml} with prettier Oct 11, 2024
@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 2 times, most recently from 4b79e76 to 97522db Compare October 13, 2024 15:54
@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 3 times, most recently from 60a544d to 4bceb5d Compare November 4, 2024 19:38
@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 2 times, most recently from 615fff9 to feac44d Compare November 12, 2024 13:57
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