Skip to content

Commit

Permalink
(fix) format node_modules, too
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Oct 14, 2020
1 parent fdb6d51 commit 961e76b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/language-server/src/plugins/svelte/SveltePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class SveltePlugin
});
// Take .prettierignore into account
const fileInfo = await prettier.getFileInfo(filePath, {
ignorePath: this.prettierConfig?.ignorePath ?? '.prettierignore'
ignorePath: this.prettierConfig?.ignorePath ?? '.prettierignore',
// Sapper places stuff within src/node_modules, we want to format that, too
withNodeModules: true
});
if (fileInfo.ignored) {
Logger.log('File is ignored, formatting skipped');
Expand Down

0 comments on commit 961e76b

Please sign in to comment.