We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<svelte:element {any props}>
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
8.38.0
eslint-plugin-svelte
2.26.0
I have <svelte:element this="script" /> in my App.svelte and this seems to cause the eslint plugin to fail. If you comment out this line there are no errors. https://github.com/JaKXz/eslint-svelte-repro/blob/461a388de934850df39d7d13b73c4aa2cb3b3b30/src/App.svelte#L32-L33
<svelte:element this="script" />
App.svelte
Minimal .eslintrc.cjs:
.eslintrc.cjs
module.exports = { root: true, extends: ["eslint:recommended", "plugin:svelte/recommended"], parserOptions: { sourceType: "module", ecmaVersion: "latest", }, env: { browser: true, }, };
eslint should pass without issues in the minimal repro repo.
> [email protected] lint /Users/jasonkurian/src/github.com/jakxz/eslint-svelte-repro > eslint . /Users/jasonkurian/src/github.com/jakxz/eslint-svelte-repro/src/App.svelte 0:0 error Parsing error: Cannot use 'in' operator to search for 'range' in script
https://github.com/JaKXz/eslint-svelte-repro
No response
The text was updated successfully, but these errors were encountered:
<svelte:element>
<svelte:element ...>
this
Successfully merging a pull request may close this issue.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.38.0
What version of
eslint-plugin-svelte
are you using?2.26.0
What did you do?
I have
<svelte:element this="script" />
in myApp.svelte
and this seems to cause the eslint plugin to fail. If you comment out this line there are no errors. https://github.com/JaKXz/eslint-svelte-repro/blob/461a388de934850df39d7d13b73c4aa2cb3b3b30/src/App.svelte#L32-L33Minimal
.eslintrc.cjs
:What did you expect to happen?
eslint should pass without issues in the minimal repro repo.
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/JaKXz/eslint-svelte-repro
Additional comments
No response
The text was updated successfully, but these errors were encountered: