Skip to content

Commit ba1389b

Browse files
committed
fix: keep git hooks at workspace root
1 parent 3af443e commit ba1389b

3 files changed

Lines changed: 25 additions & 45 deletions

File tree

‎package.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@
3030
}
3131
},
3232
"devDependencies": {
33+
"@biomejs/biome": "^2.3.10",
3334
"fallow": "3.10.0",
35+
"lint-staged": "^16.2.7",
36+
"simple-git-hooks": "^2.13.1",
3437
"turbo": "^2.10.7"
38+
},
39+
"simple-git-hooks": {
40+
"pre-commit": "pnpm exec lint-staged"
41+
},
42+
"lint-staged": {
43+
"*.{js,json,css,md,ts,tsx}": [
44+
"biome check --fix --no-errors-on-unmatched --files-ignore-unknown=true"
45+
]
3546
}
3647
}

‎packages/react-intersection-observer/package.json‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@
8484
"@semantic-release/github"
8585
]
8686
},
87-
"simple-git-hooks": {
88-
"pre-commit": "npx lint-staged"
89-
},
90-
"lint-staged": {
91-
"*.{js,json,css,md,ts,tsx}": [
92-
"biome check --fix --no-errors-on-unmatched --files-ignore-unknown=true"
93-
]
94-
},
9587
"size-limit": [
9688
{
9789
"path": "dist/index.mjs",
@@ -124,7 +116,6 @@
124116
},
125117
"devDependencies": {
126118
"@arethetypeswrong/cli": "^0.18.2",
127-
"@biomejs/biome": "^2.3.10",
128119
"@rsbuild/core": "1.5.13",
129120
"@rsbuild/plugin-react": "1.4.2",
130121
"@size-limit/preset-small-lib": "^12.0.0",
@@ -137,14 +128,12 @@
137128
"@vitest/browser-playwright": "^4.0.16",
138129
"@vitest/coverage-istanbul": "^4.0.16",
139130
"bumpp": "^10.3.2",
140-
"lint-staged": "^16.2.7",
141131
"microbundle": "^0.15.1",
142132
"npm-run-all": "^4.1.5",
143133
"playwright": "^1.57.0",
144134
"publint": "^0.3.16",
145135
"react": "^19.2.3",
146136
"react-dom": "^19.2.3",
147-
"simple-git-hooks": "^2.13.1",
148137
"size-limit": "^12.0.0",
149138
"tsup": "^8.5.1",
150139
"typescript": "^5.9.3",

‎pnpm-lock.yaml‎

Lines changed: 14 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)