|
17 | 17 | "scripts": { |
18 | 18 | "dev": "node-modules-inspector", |
19 | 19 | "build": "node-modules-inspector build", |
20 | | - "lint": "eslint .", |
| 20 | + "lint": "bunx --bun pickier .", |
21 | 21 | "release": "bumpp && pnpm publish", |
22 | | - "prepare": "simple-git-hooks" |
| 22 | + "lint:fix": "bunx --bun pickier . --fix", |
| 23 | + "format": "bunx --bun pickier . --format", |
| 24 | + "format:fix": "bunx --bun pickier . --format --write", |
| 25 | + "postinstall": "bunx git-hooks" |
23 | 26 | }, |
24 | 27 | "dependencies": { |
25 | 28 | "@stacksjs/actions": "catalog:core", |
|
53 | 56 | "@stacksjs/enums": "catalog:core", |
54 | 57 | "@stacksjs/env": "catalog:core", |
55 | 58 | "@stacksjs/error-handling": "catalog:core", |
56 | | - "@stacksjs/eslint-config": "catalog:eslint", |
57 | 59 | "@stacksjs/events": "catalog:core", |
58 | 60 | "@stacksjs/faker": "catalog:core", |
59 | 61 | "@stacksjs/git": "catalog:core", |
|
114 | 116 | }, |
115 | 117 | "devDependencies": { |
116 | 118 | "@types/node": "catalog:unrelated", |
117 | | - "eslint": "catalog:unrelated", |
118 | | - "lint-staged": "catalog:unrelated", |
119 | 119 | "netlify-plugin-cache": "catalog:unrelated", |
120 | 120 | "node-modules-inspector": "catalog:unrelated", |
121 | 121 | "pnpm": "catalog:unrelated", |
122 | | - "simple-git-hooks": "catalog:unrelated", |
123 | | - "typescript": "catalog:unrelated" |
| 122 | + "typescript": "catalog:unrelated", |
| 123 | + "bun-git-hooks": "^0.3.1" |
124 | 124 | }, |
125 | | - "simple-git-hooks": { |
126 | | - "pre-commit": "pnpm lint-staged" |
127 | | - }, |
128 | | - "lint-staged": { |
129 | | - "*": "eslint --fix" |
| 125 | + "git-hooks": { |
| 126 | + "pre-commit": { |
| 127 | + "staged-lint": { |
| 128 | + "*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix" |
| 129 | + } |
| 130 | + }, |
| 131 | + "commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG" |
130 | 132 | } |
131 | 133 | } |
0 commit comments