chore: light hook

This commit is contained in:
Slinetrac
2025-10-09 10:29:20 +08:00
parent 4417fe6cd9
commit f5c2b2a23d
5 changed files with 37 additions and 135 deletions

View File

@@ -28,12 +28,9 @@
"clippy": "cargo clippy --manifest-path ./src-tauri/Cargo.toml",
"lint": "eslint -c eslint.config.ts --cache --cache-location .eslintcache src",
"lint:fix": "eslint -c eslint.config.ts --cache --cache-location .eslintcache --fix src",
"lint:staged": "eslint -c eslint.config.ts --cache --cache-location .eslintcache",
"lint:all": "node scripts/lint-all.mjs",
"format": "prettier --write .",
"format:check": "prettier --check .",
"type-check": "tsc --noEmit",
"validate": "pnpm format:check && pnpm lint && pnpm type-check"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
@@ -121,6 +118,17 @@
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-svgr": "^4.5.0"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"eslint --fix",
"prettier --write",
"git add"
],
"*.{css,scss,json,md}": [
"prettier --write",
"git add"
]
},
"type": "module",
"packageManager": "pnpm@9.13.2"
}