bug: Combining function bindings with comments causes unnecessary parentheses to be inserted
#500 28 days ago • Jul 22, 2025<Foo
bind:value={
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ignore
() => bar ?? '',
(v) => {
bar = v;
}
}
/>
Formatting the above code results in the following code.
<Foo
bind:value={
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ignore
(() => bar ?? '',
(v) => {
bar = v;
}
}
/>
I believe parentheses before () => bar ?? ''
is unnecessary.Adjust quoting behavior, adjust/remove strict option
#348 Apr 5, 2024