Skip to content

Commit

Permalink
feat: run fmt before push (#464)
Browse files Browse the repository at this point in the history
* feat: run fmt before push

* Create package.lock
  • Loading branch information
itexpert120 authored Nov 13, 2023
1 parent 15b0a9c commit 2108078
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
19 changes: 18 additions & 1 deletion package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"http-server": "^14.1.1",
"near-bos-webcomponent": "^0.0.2",
"prettier": "^2.8.4",
"replace-in-files": "^3.0.0"
"replace-in-files": "^3.0.0",
"simple-git-hooks": "^2.9.0"
},
"scripts": {
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
Expand All @@ -20,6 +21,9 @@
"gateway": "node scripts/dev-gateway.mjs",
"test": "npx playwright test"
},
"simple-git-hooks": {
"pre-push": "npm run fmt"
},
"repository": {
"type": "git",
"url": "git+https://github.com/near/neardevhub-widgets.git"
Expand Down

0 comments on commit 2108078

Please sign in to comment.