Skip to content

Commit

Permalink
fix(docz-utils): parser config for prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jan 21, 2019
1 parent 793b5ce commit 54ad0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/docz-utils/src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import logger from 'signale'

export const formatter = (code: string) =>
prettier.format(code, {
parser: 'babylon',
parser: 'babel',
semi: false,
singleQuote: true,
trailingComma: 'all',
})
} as any)

export const format = (code: string): Promise<string> =>
new Promise((resolve, reject) => {
Expand Down

0 comments on commit 54ad0fa

Please sign in to comment.