From 00d4da2a53939ae249d4813cc77aebd932e87bb9 Mon Sep 17 00:00:00 2001 From: Arian Daneshvar Date: Tue, 15 Apr 2025 17:53:31 -0700 Subject: [PATCH] add check-format script and use it in CI --- .github/workflows/ci.yml | 2 +- frontend/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9cb360d..54cc37df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,5 +66,5 @@ jobs: - run: npm ci - run: npm run lint - - run: npm run format + - run: npm run check-format diff --git a/frontend/package.json b/frontend/package.json index 559684bc..cb39436a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,7 +14,8 @@ "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore", "lint:eslint": "eslint . --fix", "lint": "run-s lint:*", - "format": "prettier --write src/" + "format": "prettier --write src/", + "check-format": "prettier --check src" }, "dependencies": { "@primeuix/themes": "^1.0.0",