Skip to content

Commit 0471e4c

Browse files
committed
fix(pnpm): do not set catalogMode when catalogs is not enabled
1 parent 4207a57 commit 0471e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/configs/pnpm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export async function pnpm(
8787
rules: {
8888
'pnpm/yaml-enforce-settings': ['error', {
8989
settings: {
90-
catalogMode: 'prefer',
9190
shellEmulator: true,
9291
trustPolicy: 'no-downgrade',
92+
...(catalogs ? { catalogMode: 'prefer' } : {}),
9393
},
9494
}],
9595
'pnpm/yaml-no-duplicate-catalog-item': 'error',

0 commit comments

Comments
 (0)