Use .prettierignore for better formatting control

* `npm run format` becomes much simpler
* Also format woodpecker YAML files
* Exclude arch build files from formatting
This commit is contained in:
Thomas Scholtes
2025-07-22 10:28:53 +02:00
committed by Rūdolfs Ošiņš
parent 4fd016de9e
commit 64a9e2ce9f
3 changed files with 11 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
arch/radicle-desktop
arch/radicle-desktop.git
crates
*.md
*.lock
+5 -5
View File
@@ -51,8 +51,8 @@ steps:
# Ensure .SCRINFO is up-to-date
- makepkg --printsrcinfo > .SRCINFO && git diff --exit-code .SRCINFO
- |
CI=true \
BUILDDIR=/home/builder/build \
PKGDEST=/home/builder/ \
SRCDEST=/home/builder/ \
makepkg --syncdeps --noconfirm --force
CI=true \
BUILDDIR=/home/builder/build \
PKGDEST=/home/builder/ \
SRCDEST=/home/builder/ \
makepkg --syncdeps --noconfirm --force
+1 -1
View File
@@ -16,7 +16,7 @@
"check-rs": "scripts/check-rs",
"test:unit": "TZ='UTC' vitest run",
"test:e2e": "TZ='UTC' playwright test",
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' '!crates/**/*' --write",
"format": "npx prettier . --write",
"generate-types": "cargo test --manifest-path ./crates/radicle-types/Cargo.toml",
"tauri": "npx tauri"
},