From 115bb366f6eb43d24914e22fe2a52584d8184075 Mon Sep 17 00:00:00 2001 From: miguel-merlin Date: Wed, 11 Dec 2024 19:37:25 -0500 Subject: [PATCH] added prettier check to package.json --- .github/workflows/build.yaml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 80b56fd..41377e7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: npm test +name: Build on: push: @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: "22" + node-version: '22' - name: Install dependencies run: npm install - name: Run linter diff --git a/package.json b/package.json index f072832..975d21e 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", + "format:check": "prettier --check ./src", "format": "prettier --write ./src", "test": "vitest" },