Skip to content

Commit

Permalink
build: Enable lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRatcliffe committed Sep 17, 2024
1 parent 5d59a44 commit 16fcfc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run prettier:check
npm run pre-commit
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"dist-win": "electron-builder -w",
"dist-mac": "electron-builder -m",
"dist-linux": "electron-builder -l",
"pre-commit": "lint-staged --concurrent false",
"prettier:check": "prettier --check \"**/*.{css,js,json,md,twig,yml}\"",
"prettier:format": "prettier --write \"**/*.{css,js,json,md,twig,yml}\"",
"postdist": "npm run pack-win && npm run pack-mac",
Expand All @@ -45,7 +46,10 @@
"prepare": "husky"
},
"lint-staged": {
"{**/*,*}.{css,js,json,md,twig,yml}": "prettier --write"
"*.{css,html,js,json,md,twig,yml}": [
"prettier --write",
"prettier --check"
]
},
"build": {
"appId": "com.sidenoder.app",
Expand Down

0 comments on commit 16fcfc5

Please sign in to comment.