Skip to content

Commit 4f78b2b

Browse files
baboon-kingfengstats
authored andcommitted
chore: enable format code on pre-commit & save
1 parent 6e1f3c5 commit 4f78b2b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.simple-git-hooks.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
2-
// Enable after formatting all codes
3-
// "pre-commit": "pnpm exec lint-staged",
2+
"pre-commit": "pnpm exec lint-staged",
43
"commit-msg": "pnpm exec tsx ./scripts/verify-commit.ts",
54
};

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"prettier.enable": true,
33
"editor.defaultFormatter": "esbenp.prettier-vscode",
4-
"editor.formatOnSave": false,
4+
"editor.formatOnSave": true,
55
// fixed `Unknown at rule @apply` warning
66
"css.lint.unknownAtRules": "ignore",
77
"scss.lint.unknownAtRules": "ignore"

0 commit comments

Comments
 (0)