Skip to content

Commit

Permalink
Ensuring Prettier's configurations are objects before normalizing them
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Nov 30, 2023
1 parent 1aa08a7 commit 1513ae6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config_prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const getPrettierConfig = memoize(async (folderPath: string): Promise<PrettierCo
try {
const config = await loader(filePath);
if (!config) continue;
if (!isObject(config)) continue;
return normalizePrettierOptions(config, folderPath);
} catch {
continue;
Expand Down

0 comments on commit 1513ae6

Please sign in to comment.