-
Notifications
You must be signed in to change notification settings - Fork 2
feat: replace lint/fmt with unified vp check and add pre-commit hooks #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f62ecfb
ed0251b
5d30425
e2a7149
440bcaa
4cb5e96
402cde4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| npx lint-staged | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,14 +4,13 @@ | |||||
| "private": true, | ||||||
| "type": "module", | ||||||
| "scripts": { | ||||||
| "lint": "vp lint --type-aware --type-check", | ||||||
| "lint:fix": "vp run lint --fix", | ||||||
| "check": "vp check", | ||||||
| "check:fix": "vp check --fix", | ||||||
| "build": "vp pack", | ||||||
| "typecheck": "tsc --noEmit", | ||||||
| "test": "vp test run", | ||||||
| "test:watch": "vp test -w", | ||||||
| "fmt": "vp fmt", | ||||||
| "fmt:check": "vp fmt --check" | ||||||
| "prepare": "husky" | ||||||
| }, | ||||||
| "dependencies": { | ||||||
| "@actions/cache": "^4.1.0", | ||||||
|
|
@@ -23,8 +22,13 @@ | |||||
| }, | ||||||
| "devDependencies": { | ||||||
| "@types/node": "^22.19.11", | ||||||
| "husky": "^9.1.7", | ||||||
| "lint-staged": "^16.2.7", | ||||||
| "typescript": "^5.9.3", | ||||||
| "vite-plus": "latest" | ||||||
| }, | ||||||
| "lint-staged": { | ||||||
| "*": "vp check --fix" | ||||||
|
||||||
| "*": "vp check --fix" | |
| "*.{ts,tsx}": "vp check --fix" |
Uh oh!
There was an error while loading. Please reload this page.