Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.20.0
What version of eslint-plugin-svelte
are you using?
2.46.1
What did you do?
The example configuration from the documentation has type errors when checked with TypeScript.
Steps to reproduce:
git clone https://github.com/dschuessler/eslint-plugin-svelte-bug
cd eslint-plugin-svelte-bug
npm install
- Open folder in VSCode.
- Open
eslint.config.js
in VSCode.
What did you expect to happen?
No errors, because the file is taken from the documentation.
What actually happened?
Multiple Typescript errors:
At line 5:
Module '"/Users/dennis/Library/Caches/typescript/5.6/node_modules/@types/espree/index"' has no default export.ts(1192)
At line 7:
Cannot find name 'js'.
At line 8:
Type 'LegacyConfig<RulesRecord, RulesRecord>' must have a '[Symbol.iterator]()' method that returns an iterator.ts(2488)
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/dschuessler/eslint-plugin-svelte-bug
Additional comments
Thank you for your work!
Metadata
Metadata
Assignees
Labels
No labels