From 6aafc7a9f4eb73f2d5f1b4fcd3194f1611d1d0de Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Thu, 23 Mar 2023 20:19:42 +0100 Subject: [PATCH] chore(code-quality): switch format to format:check --- .github/workflows/code-quality.yml | 6 +----- package.json | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 653de1a..68c6d82 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -46,8 +46,4 @@ jobs: run: npm run lint - name: Run format 💎 - run: npm run format - - - uses: EndBug/add-and-commit@v9 - with: - message: 'style: code quality fixes from code-quality.yml' + run: npm run format:check diff --git a/package.json b/package.json index bfa5357..19d25a4 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start": "node dist/index.js", "build": "tsc", "format": "prettier --ignore-path .gitignore --write .", - "lint": "", + "format:check": "prettier --check --ignore-path .gitignore --write .", + "lint": "eslint --ext \".js,.mjs,.ts,.d.ts\" --ignore-path .gitignore .", "test": "vitest --run", "test:watch": "vitest", "local": "npm uninstall -g && npm install -g && json2struct"