Reformat on save had also added trailing commas. Release Notes: - Disable word completions in plaintext and markdown files, see https://zed.dev/docs/configuring-zed?highlight=word%20completio#words on how to enable it back in the language settings
18 lines
533 B
Bash
Executable File
18 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
PRETTIER_VERSION=3.5.0
|
|
|
|
pnpm dlx "prettier@${PRETTIER_VERSION}" assets/settings/default.json --parser=jsonc --check || {
|
|
echo "To fix, run from the root of the Zed repo:"
|
|
echo " pnpm dlx prettier@${PRETTIER_VERSION} assets/settings/default.json --parser=jsonc --write"
|
|
false
|
|
}
|
|
|
|
cd docs
|
|
pnpm dlx "prettier@${PRETTIER_VERSION}" . --check || {
|
|
echo "To fix, run from the root of the Zed repo:"
|
|
echo " cd docs && pnpm dlx prettier@${PRETTIER_VERSION} . --write && cd .."
|
|
false
|
|
}
|