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
|
run: pnpm install
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: pnpm run lint:check
|
||||||
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)
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint . --fix && prettier --write .",
|
"lint": "eslint . --fix && prettier --write .",
|
||||||
|
"lint:check": "eslint . && prettier . --check",
|
||||||
"dev": "run-p rollup:dev hugo:dev",
|
"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",
|
"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",
|
"server": "run-p rollup:server hugo:server",
|
||||||
|
|||||||
Reference in New Issue
Block a user