Skip to content

Commit

Permalink
Fixed #2460
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Nov 12, 2020
1 parent bc0bee7 commit d271e97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/utils/prettier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export function prettierPluginPugify(
const prettier = dependencyService.get('prettier', fileFsPath).module;
const prettierPluginPug = dependencyService.get('@prettier/plugin-pug', fileFsPath).module;
const prettierOptions = getPrettierOptions(dependencyService, prettier, fileFsPath, parser, vlsFormatConfig);
prettierOptions.pluginSearchDirs = [];
prettierOptions.plugins = Array.isArray(prettierOptions.plugins)
? [...prettierOptions.plugins, prettierPluginPug]
: [prettierPluginPug];
Expand Down

0 comments on commit d271e97

Please sign in to comment.