explorer: Hard-wrap Markdown with prettier

- Format all files Prettier supports
- Run `prettier .` in format and check, so both cover the same files
- Check Markdown, which only format covered before
- Replace stale ignore entries with `crates`
This commit is contained in:
Daniel Norman
2026-10-27 11:09:32 +01:00
parent 196ddbf47e
commit 563cafbc85
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -1,2 +1 @@
radicle-httpd
desktop
crates
+1 -1
View File
@@ -3,6 +3,6 @@
"plugins": ["prettier-plugin-svelte"],
"svelteSortOrder": "options-scripts-styles-markup",
"bracketSameLine": true,
"proseWrap": "never",
"proseWrap": "always",
"htmlWhitespaceSensitivity": "ignore"
}
+1 -1
View File
@@ -10,7 +10,7 @@
"check": "scripts/check",
"check:ci": "scripts/check-ci",
"check:radicle-httpd": "cargo clippy --all --tests && cargo fmt --all --check",
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
"format": "npx prettier . --write",
"test:unit": "TZ='UTC' vitest run",
"test:e2e": "NODE_CONFIG_ENV='test' TZ='UTC' playwright test",
"test:e2e:local": "scripts/compile-local-httpd && USE_LOCAL_HTTPD=true NODE_CONFIG_ENV='test' TZ='UTC' playwright test",
+1 -1
View File
@@ -9,4 +9,4 @@ npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-wa
# Buildkite cache path is always a directory, never a file.
mkdir -p .lintcache
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 .
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier
npx prettier . --check --cache --cache-location .lintcache/prettier