Skip to content

Commit

Permalink
fix: support shared prettier config files
Browse files Browse the repository at this point in the history
Revert breaking change introduced in cosmiconfig v9.0.0
  • Loading branch information
pebo committed Jun 19, 2024
1 parent 932bad8 commit b020f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ class CodeGenConfig {
}

const getDefaultPrettierOptions = () => {
const prettier = cosmiconfigSync("prettier").search();
const prettier = cosmiconfigSync("prettier", {
searchStrategy: "global",
}).search();

if (prettier) {
return {
Expand Down

0 comments on commit b020f2c

Please sign in to comment.