Skip to content

Commit 961e76b

Browse files
authored
(fix) format node_modules, too
#604
1 parent fdb6d51 commit 961e76b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/language-server/src/plugins/svelte/SveltePlugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export class SveltePlugin
7777
});
7878
// Take .prettierignore into account
7979
const fileInfo = await prettier.getFileInfo(filePath, {
80-
ignorePath: this.prettierConfig?.ignorePath ?? '.prettierignore'
80+
ignorePath: this.prettierConfig?.ignorePath ?? '.prettierignore',
81+
// Sapper places stuff within src/node_modules, we want to format that, too
82+
withNodeModules: true
8183
});
8284
if (fileInfo.ignored) {
8385
Logger.log('File is ignored, formatting skipped');

0 commit comments

Comments
 (0)