From b3ff8793a8f374d7d8a7b3489c9d22f31596d8a8 Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 4 Sep 2024 23:54:29 -0400 Subject: [PATCH] run format check in ci --- .github/workflows/ci.yaml | 5 ++++- package.json | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ccebd97..325f21ba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,4 +21,7 @@ jobs: run: yarn test - name: lint - run: yarn lint + run: yarn lint:check + + - name: format + run: yarn format:check diff --git a/package.json b/package.json index a60c55ee..9e95fe19 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,9 @@ "start-dev": "webpack-dev-server --mode development", "start-live-proxy": "cp dist/sw.js ./examples/live-proxy/sw.js && cd ./examples/live-proxy && ./fetch-adblock.sh && http-server -p 10001", "test": "c8 ava", - "lint": "eslint ./", + "lint:check": "eslint ./", + "lint": "eslint --fix ./", + "format:check": "prettier --check ./", "format": "prettier --write ./" } }