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 18, 2024
1 parent a5e83d6 commit fa1bb1b
Show file tree
Hide file tree
Showing 2 changed files with 3 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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,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 @@ -44,7 +45,7 @@
"prepare": "husky"
},
"lint-staged": {
"{**/*,*}.{css,js,json,md,twig,yml}": "prettier --write"
"*.{css,html,js,json,md,twig,yml}": "prettier --write"
},
"build": {
"appId": "com.sidenoder.app",
Expand Down

0 comments on commit fa1bb1b

Please sign in to comment.