Skip to content

Commit

Permalink
fix(prettier): add parser, filePath
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 19, 2018
1 parent 3b40708 commit 7de2070
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/utils/run-prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7de2070

Please sign in to comment.