mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-08 05:00:44 +08:00
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:
@@ -1,2 +1 @@
|
||||
radicle-httpd
|
||||
desktop
|
||||
crates
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"plugins": ["prettier-plugin-svelte"],
|
||||
"svelteSortOrder": "options-scripts-styles-markup",
|
||||
"bracketSameLine": true,
|
||||
"proseWrap": "never",
|
||||
"proseWrap": "always",
|
||||
"htmlWhitespaceSensitivity": "ignore"
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user