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
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,12 @@ jobs:
- name: run `taplo fmt`
run: taplo format --check --diff

- 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.

prettier_options: --write .

- name: Check for typos
uses: crate-ci/[email protected]

Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Jujutsu
#
# When using the WGPU repository through [Jujutsu](https://github.com/martinvonz/jj), `.jj/` dirs.
# are ignored because Jujutsu writes a `.jj/.gitignore` file containing `/*`. Some tools, like
# `prettier`, don't handle nested `.gitgnore` properly, but they _do_ handle top-level `.gitignore`
# patterns properly. So, include it here, even though we shouldn't need it. :cry:
.jj/

# Generated by Cargo
# will have compiled files and executables
target/
Expand Down Expand Up @@ -36,4 +44,4 @@ cts/
.gpuconfig

# Temporary clone location for wasm-bindgen mirroring
wgpu/src/backend/webgpu/webgpu_sys/wasm_bindgen_clone_tmp
wgpu/src/backend/webgpu/webgpu_sys/wasm_bindgen_clone_tmp
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*.frag
**/*.vert
naga/tests/in/
naga/tests/out/
Empty file added .prettierrc.toml
Empty file.
Loading