1#!/bin/bash
 2set -euxo pipefail
 3
 4PRETTIER_VERSION=3.5.0
 5
 6pnpm dlx "prettier@${PRETTIER_VERSION}" assets/settings/default.json --check || {
 7    echo "To fix, run from the root of the Zed repo:"
 8    echo "  pnpm dlx prettier@${PRETTIER_VERSION} assets/settings/default.json --write"
 9    false
10}
11
12cd docs
13pnpm dlx "prettier@${PRETTIER_VERSION}" . --check || {
14    echo "To fix, run from the root of the Zed repo:"
15    echo "  cd docs && pnpm dlx prettier@${PRETTIER_VERSION} . --write && cd .."
16    false
17}