🔧 chore: pre-commit hooks

This commit is contained in:
2026-07-01 12:10:06 +07:00
parent 93b079b3d3
commit 25cf1df334
6 changed files with 18 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
* text=auto eol=lf
+1
View File
@@ -6,3 +6,4 @@ dist/
.DS_Store
.env
.env.*
.husky/_/
+1
View File
@@ -0,0 +1 @@
pnpm check
+1
View File
@@ -1,5 +1,6 @@
{
"printWidth": 100,
"endOfLine": "lf",
"semi": true,
"singleQuote": false,
"trailingComma": "all"
+4 -1
View File
@@ -8,15 +8,17 @@
"type": "module",
"scripts": {
"dev": "electron-vite dev",
"build": "pnpm run typecheck && electron-vite build",
"build": "pnpm run check && electron-vite build",
"preview": "electron-vite preview",
"start": "electron-vite preview",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
"check": "pnpm run lint && pnpm run typecheck && pnpm run format",
"lint": "eslint .",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"prepare": "husky",
"package": "pnpm run build && electron-builder --dir",
"package:run": "pnpm run package && open dist/mac*/'VRC Circle.app'",
"dist": "pnpm run build && electron-builder",
@@ -51,6 +53,7 @@
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.3",
"globals": "^17.7.0",
"husky": "^9.1.7",
"playwright-core": "^1.61.1",
"prettier": "^3.6.2",
"react": "^19.0.0",
+10
View File
@@ -81,6 +81,9 @@ importers:
globals:
specifier: ^17.7.0
version: 17.7.0
husky:
specifier: ^9.1.7
version: 9.1.7
playwright-core:
specifier: ^1.61.1
version: 1.61.1
@@ -1933,6 +1936,11 @@ packages:
humanize-ms@1.2.1:
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
i18next@26.3.2:
resolution: {integrity: sha512-QQkXAM1sPDHqhxMQuBeHVMUn6mJchF+wdpOoQerciLAFqO3ZYdxO0EUbeEhruyutnNwpUQIITDVzLjwnNL0T1w==}
peerDependencies:
@@ -4885,6 +4893,8 @@ snapshots:
dependencies:
ms: 2.1.3
husky@9.1.7: {}
i18next@26.3.2(typescript@5.9.3):
optionalDependencies:
typescript: 5.9.3