From 54ad0fa3df6d3811693be76776669ac5eeb7e07f Mon Sep 17 00:00:00 2001 From: Pedro Nauck Date: Mon, 21 Jan 2019 10:51:38 -0200 Subject: [PATCH] fix(docz-utils): parser config for prettier --- core/docz-utils/src/format.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/docz-utils/src/format.ts b/core/docz-utils/src/format.ts index e4e641fb8..a10933ab9 100644 --- a/core/docz-utils/src/format.ts +++ b/core/docz-utils/src/format.ts @@ -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 => new Promise((resolve, reject) => {