Skip to content

Commit

Permalink
Respect "parser" the same as we respect "filepath"
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jun 23, 2020
1 parent 41214ab commit fb0390d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public String apply(String input, File source) throws Exception {

private String assertFilepathInConfigOptions(File file) {
// if it is already in the options, we do nothing
if (prettierConfigOptions.contains("\"filepath\"")) {
if (prettierConfigOptions.contains("\"filepath\"") || prettierConfigOptions.contains("\"parser\"")) {
return prettierConfigOptions;
}
// if the file has no name, we cannot use it
Expand Down

0 comments on commit fb0390d

Please sign in to comment.