We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
{}
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
9.21.0
eslint-plugin-svelte
3.0.0
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>
eslint-plugin-svelte should detect that the string literal contains curly braces, and therefore should be left untouched.
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.
https://eslint-online-playground.netlify.app/#eNp9kL1uwzAMhF9F4KIlkXc3CDr0LaIMhkUbcvUHSw5SGHr3UpYDJEOyEbjvjkeuEOe+wXtng0ERb2gSQguncF75yhLGxDLPpyac4QAYjXZJ9N4NehRTJFDb4OfEpsiG2Vsm4btCzRQlfEm36zW4MrwSx2CWUbtjlTix0uF9oxUO3WISu0jHKHpfGMWMvbcWnUJ1KJIQe+MHceGD6VLzxPErkVcKp/qh63+7Eam4d1R9LRES0l9ACS1N1qvF0LxlS1B4+8FQUlyvkc5p2WYp2vOVxUpb6VW7tQBVfyPW0h+dr995RQuZpcuQ/wGDdZfc
No response
The text was updated successfully, but these errors were encountered:
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?
9.21.0
What version of
eslint-plugin-svelte
are you using?3.0.0
What did you do?
Configuration
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?
--fix:
Link to GitHub Repo with Minimal Reproducible Example
https://eslint-online-playground.netlify.app/#eNp9kL1uwzAMhF9F4KIlkXc3CDr0LaIMhkUbcvUHSw5SGHr3UpYDJEOyEbjvjkeuEOe+wXtng0ERb2gSQguncF75yhLGxDLPpyac4QAYjXZJ9N4NehRTJFDb4OfEpsiG2Vsm4btCzRQlfEm36zW4MrwSx2CWUbtjlTix0uF9oxUO3WISu0jHKHpfGMWMvbcWnUJ1KJIQe+MHceGD6VLzxPErkVcKp/qh63+7Eam4d1R9LRES0l9ACS1N1qvF0LxlS1B4+8FQUlyvkc5p2WYp2vOVxUpb6VW7tQBVfyPW0h+dr995RQuZpcuQ/wGDdZfc
Additional comments
No response
The text was updated successfully, but these errors were encountered: