Skip to content

Commit

Permalink
fix(prettier): await isFormattingEnabled (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Mar 14, 2024
1 parent d04c9ea commit 0b86a31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/prettier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export function create(
return;
}

if (!isFormattingEnabled(prettier, document, context)) {
const hasFormattingEnabled = await isFormattingEnabled(prettier, document, context);
if (!hasFormattingEnabled) {
return;
}

Expand Down

0 comments on commit 0b86a31

Please sign in to comment.