Skip to content

Commit

Permalink
style: enforce code formatting in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Mar 3, 2024
1 parent ed236b8 commit 3bc8b70
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
run: |
npm install
npm run build --if-present
npm run format:check
npm test
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
*.d.ts
test/data/
/example

# output files
/main.js
/lib/**/*.js
/parsers/**/*.js
/test/**/*.js
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3bc8b70

Please sign in to comment.