mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
chore(package.json): add lint:check script to run eslint and prettier in check mode
This commit is contained in:
6
.github/workflows/eslint.yml
vendored
6
.github/workflows/eslint.yml
vendored
@@ -39,8 +39,4 @@ jobs:
|
||||
run: pnpm install
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
pnpm run lint
|
||||
git config --global user.email "noreply@github.com"
|
||||
git config --global user.name "CI"
|
||||
git diff --quiet || (git add -A && git commit -m "style: ESlint && Prettier" && git push)
|
||||
run: pnpm run lint:check
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"lint": "eslint . --fix && prettier --write .",
|
||||
"lint:check": "eslint . && prettier . --check",
|
||||
"dev": "run-p rollup:dev hugo:dev",
|
||||
"build": "rm -f ./static/bundled/js/* && run-s rollup:build hugo:build && yes | cp -rf ./exampleSite/public/css/* ./static/bundled/css",
|
||||
"server": "run-p rollup:server hugo:server",
|
||||
|
||||
Reference in New Issue
Block a user