Skip to content

Commit

Permalink
run format check in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Sep 5, 2024
1 parent 51c1b3b commit b3ff879
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ jobs:
run: yarn test

- name: lint
run: yarn lint
run: yarn lint:check

- name: format
run: yarn format:check
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./"
}
}

0 comments on commit b3ff879

Please sign in to comment.