Skip to content

Commit 722f6a1

Browse files
committed
chore: format committed files using Prettier
1 parent 9b95d4f commit 722f6a1

3 files changed

Lines changed: 271 additions & 33 deletions

File tree

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,16 @@
1717
"lint:types": "pnpm -r --parallel run typecheck || echo 'Type checking finished with errors'",
1818
"release": "tsx script/release.ts",
1919
"test": "pnpm --filter=app test",
20-
"test:unit": "vitest run"
20+
"test:unit": "vitest run",
21+
"postinstall": "simple-git-hooks"
22+
},
23+
"simple-git-hooks": {
24+
"pre-commit": "pnpm exec lint-staged"
25+
},
26+
"lint-staged": {
27+
"*": [
28+
"prettier --ignore-unknown --write"
29+
]
2130
},
2231
"keywords": [],
2332
"author": "",
@@ -35,9 +44,11 @@
3544
"eslint-config-unjs": "^0.2.1",
3645
"eslint-plugin-unicorn": "47.0.0",
3746
"eslint-plugin-vue": "^10.0.0",
47+
"lint-staged": "^16.4.0",
3848
"ohash": "^1.1.3",
3949
"pkg-pr-new": "workspace:^",
4050
"prettier": "^3.2.5",
51+
"simple-git-hooks": "^2.13.1",
4152
"tsx": "^4.10.5",
4253
"typescript": "^5.4.5",
4354
"uncrypto": "^0.1.3",

0 commit comments

Comments
 (0)