-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint: Unexpected token 1 #135
Comments
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 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 |
@Conduitry Did you read through #16 (comment)? |
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?
The text was updated successfully, but these errors were encountered: