Skip to content

Commit

Permalink
chore: setup lint-staged and typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 26, 2024
1 parent 4aeeaaa commit 4066f51
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ jobs:
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"build": "unbuild",
"stub": "unbuild --stub",
"release": "bumpp && npm publish",
"typecheck": "tsc",
"prepare": "npx simple-git-hooks",
"lint": "eslint .",
"test": "vitest"
},
Expand All @@ -59,8 +61,10 @@
"fs-extra": "^11.2.0",
"fzf": "^0.5.2",
"ini": "^4.1.3",
"lint-staged": "^15.2.9",
"package-manager-detector": "^0.1.2",
"picocolors": "^1.0.1",
"simple-git-hooks": "^2.11.1",
"taze": "^0.16.6",
"terminal-link": "^3.0.0",
"tinyglobby": "^0.2.5",
Expand All @@ -69,5 +73,11 @@
"unbuild": "^2.0.0",
"vitest": "^2.0.5",
"which": "^4.0.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
Loading

0 comments on commit 4066f51

Please sign in to comment.