Closed SteveALee closed 5 years ago
This is our parser inference. The extension is likely not detecting the type of the file correctly. As a workaround, you can specify the parser in a prettier config file "overrides" property and set the parser. See: https://prettier.io/docs/en/options.html#parser
{
// ...
"overrides":[{
"files": "*.html", // replace this by more specific extension if needed
"options": {
"parser": "html"
}
}]
}
Duplicate of #487
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I have the extension set to use prettiereslint integration and for a
.js
file theeqeqeq
error is getting fixed correctly on file save.However the same code in a
.svelte
file is not working.eslint-plugin-svelte3
is installed to handle the.svelte
file andeslint --fix
works fine as does clicking on the lightbulb in vscode. It's just the fix on file save that is not working.There's a project here that exhibits the problem. see the 2 files in
src/
FYI I previously raised an issue on eslint-plugin-svelt3 and it appears the
lint --fix
may not be being called by prittier on file save. Perhaps due to file extension?