chore(package.json): add lint:check script to run eslint and prettier in check mode

This commit is contained in:
Sped0n
2023-11-04 20:59:50 +08:00
parent df9d2d7d65
commit 558979285b
2 changed files with 2 additions and 5 deletions

View File

@@ -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",