Skip to content

Commit

Permalink
Run formatting as pre-commit hook with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Jul 2, 2024
1 parent 8894861 commit 0392e2e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run format
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"source": "html/index.html",
"type": "module",
"scripts": {
"prepare": "husky",
"prebuild": "rimraf dist",
"build": "npm-run-all --parallel minify:*",
"postbuild": "npm-run-all --parallel bundle:*",
Expand Down Expand Up @@ -69,6 +70,7 @@
"html-minifier-terser": "^7.2.0",
"htmlhint": "^1.1.4",
"http-server": "^14.1.1",
"husky": "^9.0.11",
"markdownlint": "^0.34.0",
"markdownlint-cli": "^0.41.0",
"nodemon": "^3.1.4",
Expand Down

0 comments on commit 0392e2e

Please sign in to comment.