Open kazzkiq opened 3 years ago
It's listed on https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md#eslint-plugin-prettier that this plugin is known not to play nicely with the eslint-plugin-prettier
, which I'm assuming you're pulling in via plugin:prettier/recommended
. It's hard to tell what's going on without a clonable repo.
The code the error is pointing at
let count = 0;
{;}
is also valid JS, so I can't tell who is failing to parse that or why.
But in any case, if you're using eslint-plugin-prettier
, this should be closed, as this is a known issue, and there's another open issue for it somewhere I believe.
@Conduitry Did you read through https://github.com/sveltejs/eslint-plugin-svelte3/issues/16#issuecomment-847622683?
It's hard to tell what's going on without a clonable repo.
Done: https://github.com/kazzkiq/svelte-eslint-prettier-error
I've reduced the repo to the minimal needed to run it and reproduce the error.
Not sure if this issue will be kept open or if its even eslint-plugin-svelte3 scope, but nonetheless, its important to have a simple repo to reproduce it for future adventurers who might want to give it a look.
I have a Vite project using their
svelte-ts
template.I've manually added Prettier and ESLint, but for some reason keep getting this error when I load
svelte3/svelte3
processor and open any.svelte
file:The component I've opened has this simple code:
This is my
.eslintrc.cjs
file content:As soon as I remove the
overrides
line with thesvelte3/svelte3
processor, the error goes away but no linting for Svelte files.Has anyone experienced this issue?