sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
296 stars 35 forks source link

Linting issue "Parsing error: value.find is not a function" #826

Closed kunalshah closed 2 months ago

kunalshah commented 2 months ago

Before You File a Bug Report Please Confirm You Have Done The Following...

What version of ESLint are you using?

9.7.0

What version of eslint-plugin-svelte are you using?

2.42.0

What did you do?

After upgrading to latest version of svelte (5.0.0-next.190), eslint shows linting error "Parsing error: value.find is not a function". There was no error with svelte version "5.0.0-next.184". One of the change with svelte 5.0.0-next.190 is that the values passed to components are not to be enclosed in string, and that probably is causing the issue with the eslint-plugin-svelte ``` [https://github.com/kunalshah/my-app/blob/main/eslint.config.js](https://github.com/kunalshah/my-app/blob/main/eslint.config.js) ```
Repo: https://github.com/kunalshah/my-app

"npm run lint" to see the issue being reproduced.

What did you expect to happen?

There should not have been any linting errors.

What actually happened?

Linting error: 0:0 error Parsing error: value.find is not a function

Link to GitHub Repo with Minimal Reproducible Example

https://github.com/kunalshah/my-app

or

https://stackblitz.com/~/github.com/kunalshah/my-app

Additional comments

No response

ota-meshi commented 2 months ago

I'm looking into it, but I'm stuck on a different issue: https://github.com/sveltejs/svelte/issues/12494