style: enforce code formatting in CI

This commit is contained in:
Brian Donovan 2024-03-03 10:29:39 -08:00
parent ed236b84d6
commit 3bc8b70a56
No known key found for this signature in database
3 changed files with 8 additions and 0 deletions

View file

@ -26,4 +26,5 @@ jobs:
run: |
npm install
npm run build --if-present
npm run format:check
npm test

View file

@ -1,3 +1,9 @@
*.d.ts
test/data/
/example
# output files
/main.js
/lib/**/*.js
/parsers/**/*.js
/test/**/*.js

View file

@ -28,6 +28,7 @@
"build": "npm run clean && tsc",
"lint": "eslint --ext .ts .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"clean": "tsc --build --clean",
"prepare": "npm run build",
"postpack": "npm run clean"