Skip to content

Commit da06ade

Browse files
committed
build: Enable lint-staged
1 parent 709faaf commit da06ade

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run prettier:check
1+
npm run pre-commit

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"dist-win": "electron-builder -w",
3636
"dist-mac": "electron-builder -m",
3737
"dist-linux": "electron-builder -l",
38+
"pre-commit": "lint-staged --concurrent false",
3839
"prettier:check": "prettier --check \"**/*.{css,js,json,md,twig,yml}\"",
3940
"prettier:format": "prettier --write \"**/*.{css,js,json,md,twig,yml}\"",
4041
"postdist": "npm run pack-win && npm run pack-mac",
@@ -44,7 +45,7 @@
4445
"prepare": "husky"
4546
},
4647
"lint-staged": {
47-
"{**/*,*}.{css,js,json,md,twig,yml}": "prettier --write"
48+
"*.{css,html,js,json,md,twig,yml}": "prettier --write"
4849
},
4950
"build": {
5051
"appId": "com.sidenoder.app",

0 commit comments

Comments
 (0)