Skip to content

Commit

Permalink
refactor: use filepath instead of fileinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Jan 10, 2022
1 parent 9d1ed8e commit 36515ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/dirCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ export const dirCommand: SvgrCommand = async (
const prettierRcConfig = opts.runtimeConfig
? await resolveConfig(filepath, { editorconfig: true })
: {}
const prettierFileInfo = await getFileInfo(filepath)
return format(fileContent, {
parser: prettierFileInfo.inferredParser,
filepath,
...prettierRcConfig,
...opts.prettierConfig,
})
Expand Down

0 comments on commit 36515ba

Please sign in to comment.