Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Add check for formatting `default.json` (#30034)
Marshall Bowers5002156e3269
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 2dd1bf629d3..9acda01beb4 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -162,13 +162,23 @@ jobs:working-directory: ./docsrun: |pnpm dlx prettier@${PRETTIER_VERSION} . --check || {- echo "To fix, run from the root of the zed repo:"+ echo "To fix, run from the root of the Zed repo:"echo " cd docs && pnpm dlx prettier@${PRETTIER_VERSION} . --write && cd .."false}env:PRETTIER_VERSION: 3.5.0+ - name: Prettier Check on default.json+ run: |+ pnpm dlx prettier@${PRETTIER_VERSION} assets/settings/default.json --check || {+ echo "To fix, run from the root of the Zed repo:"+ echo " pnpm dlx prettier@${PRETTIER_VERSION} assets/settings/default.json --write"+ false+ }+ env:+ PRETTIER_VERSION: 3.5.0+# To support writing comments that they will certainly be revisited.- name: Check for todo! and FIXME commentsrun: script/check-todosdiff --git a/.prettierrc b/.prettierrcnew file mode 100644index 00000000000..963354f2316--- /dev/null+++ b/.prettierrc@@ -0,0 +1,3 @@+{+ "printWidth": 120+}diff --git a/docs/.prettierrc b/docs/.prettierrcnew file mode 100644index 00000000000..1c5e966021c--- /dev/null+++ b/docs/.prettierrc@@ -0,0 +1,3 @@+{+ "printWidth": 80+}