diff --git a/src/configuration.js b/src/configuration.js index f78b4094..70013afb 100644 --- a/src/configuration.js +++ b/src/configuration.js @@ -429,7 +429,9 @@ class CodeGenConfig { } const getDefaultPrettierOptions = () => { - const prettier = cosmiconfigSync("prettier").search(); + const prettier = cosmiconfigSync("prettier", { + searchStrategy: "global", + }).search(); if (prettier) { return {