style: enforce code formatting in CI
This commit is contained in:
parent
ed236b84d6
commit
3bc8b70a56
3 changed files with 8 additions and 0 deletions
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
|
@ -26,4 +26,5 @@ jobs:
|
|||
run: |
|
||||
npm install
|
||||
npm run build --if-present
|
||||
npm run format:check
|
||||
npm test
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
*.d.ts
|
||||
test/data/
|
||||
/example
|
||||
|
||||
# output files
|
||||
/main.js
|
||||
/lib/**/*.js
|
||||
/parsers/**/*.js
|
||||
/test/**/*.js
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue