Skip to content

Commit b020f2c

Browse files
committed
fix: support shared prettier config files
Revert breaking change introduced in cosmiconfig v9.0.0
1 parent 932bad8 commit b020f2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/configuration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ class CodeGenConfig {
429429
}
430430

431431
const getDefaultPrettierOptions = () => {
432-
const prettier = cosmiconfigSync("prettier").search();
432+
const prettier = cosmiconfigSync("prettier", {
433+
searchStrategy: "global",
434+
}).search();
433435

434436
if (prettier) {
435437
return {

0 commit comments

Comments
 (0)