Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork23
Open
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I'm usingeslint-plugin-svelte. (
*.svelte
file linting does not work with the parser alone. You should also use eslint-plugin-svelte with it.) - I'm sure the problem is a parser problem. (If you are not sure, search for the issue ineslint-plugin-svelte repo and open the issue ineslint-plugin-svelte repo if there is no solution.
- 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.19.0
What version ofeslint-plugin-svelte
andsvelte-eslint-parser
are you using?
- svelte-eslint-parser@0.43.0
- eslint-plugin-svelte@3.0.0-next.16
What did you do?
Configuration
export default ts.config([ ...ts.configs.recommendedTypeChecked, ...sveltePlugin.configs.recommended, { files: ["**/*.svelte"], languageOptions: { parserOptions: { extraFileExtensions: [".svelte"], parser: ts.parser, project: "./tsconfig.json", }, }, rules: { "@typescript-eslint/no-confusing-void-expression": "warn", }, },]);
{#snippettext(string:string)}{string}{/snippet}{@rendertext('Whoa')}
What did you expect to happen?
No errors.
What actually happened?
Placing a void expression inside another expression is forbidden. Move it to its own statement instead.
eslint(@typescript-eslint/no-confusing-void-expression)
Link toGitHub Repo with Minimal Reproducible Example
https://github.com/lishaduck/sv-esl-prs-repro
Additional comments
sonarjs/no-use-of-empty-return-value
also fails, so it's not just a types issue.
Metadata
Metadata
Assignees
Labels
No labels