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.21.0
What version of eslint-plugin-svelte
are you using?
3.0.0
What did you do?
Configuration
import js from "@eslint/js";
import svelte from 'eslint-plugin-svelte';
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
];
Example: <code>import {'{ db }'} from '$lib/db'</code>
What did you expect to happen?
eslint-plugin-svelte
should detect that the string literal contains curly braces, and therefore should be left untouched.
What actually happened?
Error: 61:39 error Unexpected mustache interpolation with a string literal value svelte/no-useless-mustaches
--fix:
Example: <code>import {db} from '$lib/db'</code>
^~ Cannot find name db.
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
No response
Metadata
Metadata
Assignees
Labels
No labels