Skip to content

Commit b29631c

Browse files
committed
Syncpack: drop broken lint-staged hook, tighten config label
The `**/package.json: [syncpack lint]` lint-staged entry caused pre-commit failures because lint-staged appends matched file paths to the command and `syncpack lint` (v15) does not accept positional paths. Whole-repo dependency linting is already covered by CI (`npm run lint:deps`), so dropping the hook keeps commits unblocked without losing the gate. Also tightens the semverGroup label wording.
1 parent 1a5fc8d commit b29631c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@
221221
"package-lock.json": [
222222
"npm run lint:lockfile"
223223
],
224-
"**/package.json": [
225-
"syncpack lint"
226-
],
227224
"packages/*/package.json": [
228225
"wp-scripts lint-pkg-json"
229226
],

syncpack.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
],
2121
semverGroups: [
2222
{
23-
label: 'All dependencies use caret ranges.',
23+
label: 'All dependencies must use caret ranges.',
2424
packages: [ '**' ],
2525
dependencyTypes: [ 'prod', 'dev' ],
2626
range: '^',

0 commit comments

Comments
 (0)