build: add format scripts

This commit is contained in:
Mateusz 2025-08-10 11:07:28 +02:00
parent 569ad9bde1
commit 76db8ce9c4

View File

@ -13,7 +13,9 @@
"coverage": "npm run clean-coverage && nyc mocha",
"test-reports": "npm run clean-coverage && nyc --reporter clover mocha --reporter xunit --reporter-option output=.xunit",
"coverage-html": "npm run test-reports && nyc report --reporter lcov && xdg-open coverage/lcov-report/index.html",
"start": "http-server public -p 8080"
"start": "http-server public -p 8080",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"author": "",
"license": "ISC",