Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I'm using eslint-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 in eslint-plugin-svelte repo and open the issue in eslint-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.18.0
What version of eslint-plugin-svelte
and svelte-eslint-parser
are you using?
What did you do?
Configuration
<!-- Paste your configuration here -->
import js from "@eslint/js";
import sveltePlugin from "eslint-plugin-svelte";
import svelteParser from "svelte-eslint-parser";
export default [
js.configs.recommended,
...sveltePlugin.configs["flat/recommended"],
{
rules: {
"no-sequences": "error",
}
},
{
files: ["**/*.svelte.js", "*.svelte.js"],
languageOptions: {
parser: svelteParser,
}
},
];
<script lang="ts">
let value = $state('');
</script>
<input bind:value={
() => value,
(v) => value = v.toLowerCase()}
/>
What did you expect to happen?
I expected the rules to not warn me of anything.
What actually happened?
Unexpected use of comma operator. (no-sequences) [6:13-14]
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
bind:property={get, set}
seems to be a feature added in Svelte 5.9.0.
https://svelte.dev/docs/svelte/bind#Function-bindings
Since this is not a sequence expression, I think it requires AST changes.
Metadata
Metadata
Assignees
Labels
No labels