feat: precommit hook
parent
71f9dc9d9c
commit
fbef43b77f
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"*.ts": ["eslint --fix", "prettier --write"],
|
||||
"*.svelte": ["eslint --fix", "prettier --write"]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,8 @@
|
|||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"test:unit": "vitest",
|
||||
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
||||
"format": "prettier --plugin-search-dir . --write ."
|
||||
"format": "prettier --plugin-search-dir . --write .",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@floating-ui/dom": "^1.4.5",
|
||||
|
@ -30,8 +31,10 @@
|
|||
"eslint-plugin-svelte": "^2.33.2",
|
||||
"highlight.js": "^11.8.0",
|
||||
"html2pdf.js": "^0.9.0",
|
||||
"husky": "^8.0.3",
|
||||
"jspdf": "^2.5.1",
|
||||
"jspdf-autotable": "^3.6.0",
|
||||
"lint-staged": "^14.0.1",
|
||||
"postcss": "^8.4.27",
|
||||
"prettier": "^2.8.0",
|
||||
"prettier-plugin-svelte": "^2.8.1",
|
||||
|
|
Loading…
Reference in New Issue