Skip to content

Commit 9ed172e

Browse files
authored
Merge pull request #781 from pebo/fix/support-shared-prettier-config
fix: support shared prettier config files
2 parents 932bad8 + b020f2c commit 9ed172e

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)