Skip to content

Commit 74fa3ae

Browse files
authored
fix(cli): pass in parser to prettier format to avoid deprecation warning (#662)
1 parent 9afb590 commit 74fa3ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/cli/src/dirCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const dirCommand: SvgrCommand = async (
101101
? await resolveConfig(filepath, { editorconfig: true })
102102
: {}
103103
return format(fileContent, {
104+
filepath,
104105
...prettierRcConfig,
105106
...opts.prettierConfig,
106107
})

0 commit comments

Comments
 (0)