We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4039eff commit 9b936fcCopy full SHA for 9b936fc
packages/language-server/src/plugins/svelte/SveltePlugin.ts
@@ -74,7 +74,8 @@ export class SveltePlugin
74
const filePath = document.getFilePath()!;
75
const prettier = importPrettier(filePath);
76
// Try resolving the config through prettier and fall back to possible editor config
77
- const config = (await prettier.resolveConfig(filePath)) || this.prettierConfig;
+ const config =
78
+ (await prettier.resolveConfig(filePath, { editorconfig: true })) || this.prettierConfig;
79
const formattedCode = prettier.format(document.getText(), {
80
...config,
81
plugins: [require.resolve('prettier-plugin-svelte')],
0 commit comments