Skip to content

Commit

Permalink
fix(cli): pass in parser to prettier format to avoid deprecation warn…
Browse files Browse the repository at this point in the history
…ing (#662)
  • Loading branch information
mikaelbr committed Jan 10, 2022
1 parent 9afb590 commit 74fa3ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/dirCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const dirCommand: SvgrCommand = async (
? await resolveConfig(filepath, { editorconfig: true })
: {}
return format(fileContent, {
filepath,
...prettierRcConfig,
...opts.prettierConfig,
})
Expand Down

1 comment on commit 74fa3ae

@vercel
Copy link

@vercel vercel bot commented on 74fa3ae Jan 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.