From 7de2070441a66ca09d10cfad383cc5d980769706 Mon Sep 17 00:00:00 2001 From: dhruvdutt Date: Thu, 19 Jul 2018 20:08:44 +0530 Subject: [PATCH] fix(prettier): add parser, filePath --- packages/utils/run-prettier.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/utils/run-prettier.ts b/packages/utils/run-prettier.ts index 6a071246537..794f86923b8 100644 --- a/packages/utils/run-prettier.ts +++ b/packages/utils/run-prettier.ts @@ -18,6 +18,8 @@ export default function runPrettier(outputPath: string, source: string, cb?: Fun let error: object; try { prettySource = prettier.format(source, { + filepath: outputPath, + parser: "babylon", singleQuote: true, tabWidth: 1, useTabs: true,