Closed orefalo closed 6 days ago
Any update on this? Any way I can help?
Fix:
{
files: ['**/*.svelte'],
languageOptions: {
parser: svelteParser,
parserOptions: {
parser: tsEslint.parser,
svelteFeatures: {
experimentalGenerics: true,
},
},
},
},
Nice thank you,
this goes into eslint.config.js (eslint 9)
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
...
{
files: ['**/*.svelte'],
languageOptions: {
parser: svelte.parser,
parserOptions: {
parser: ts.parser,
svelteFeatures: {
experimentalGenerics: true
}
}
}
},
works like a charm, closing
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.13.0
What version of
eslint-plugin-svelte
are you using?2.46.0
What did you do?
What did you expect to happen?
No errors
What actually happened?
/.../src/lib/Tree.svelte 76:18 error 'T' is not defined no-undef 77:31 error 'T' is not defined no-undef 95:44 error 'T' is not defined no-undef 95:60 error 'T' is not defined no-undef
Link to GitHub Repo with Minimal Reproducible Example
Well, this is a work in progress, but it will do to reproduce the error
Additional comments
No response