Skip to content

Commit

Permalink
catch prettier errors (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Dec 30, 2024
1 parent aff5ba0 commit 7b70ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DocsLookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ class DocEntry extends Schema.Class<DocEntry>("DocEntry")({
// prettier

const prettify = (code: string) =>
Effect.promise(() =>
Effect.tryPromise(() =>
Prettier.format(code, {
parser: "typescript",
semi: false,
}),
)
).pipe(Effect.orElseSucceed(() => code))

// errors

Expand Down

0 comments on commit 7b70ab9

Please sign in to comment.