Skip to content

Commit

Permalink
Merge pull request #781 from pebo/fix/support-shared-prettier-config
Browse files Browse the repository at this point in the history
fix: support shared prettier config files
  • Loading branch information
smorimoto authored Jun 19, 2024
2 parents 932bad8 + b020f2c commit 9ed172e
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 9ed172e

Please sign in to comment.