You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue still exists after disabling jsx. I am using Neovim. But looking at the recognised syntax it seems that the issue is that this is interpreted as an object and not destructuring. A workaround could be to allow <ident> = <expression> in objects. The best solution would of course be to correctly identify it as jsDestructuringBlock.
I tried to boil things down further.
This reproduces the issue
// It is triggered by newlines beforeconstmyFunc=({
foo /* jsObjectShorthandProp */})=>{}// and afterconstmyFunc=({ foo /* jsObjectShorthandProp */})=>{}// It is also triggered by function callsconstmyFunc=({ foo /* jsObjectShorthandProp */=Math.random()})=>{}
Repro
Recognised syntax
Were the values shown when using this:
The issue still exists after disabling jsx. I am using Neovim. But looking at the recognised syntax it seems that the issue is that this is interpreted as an object and not destructuring. A workaround could be to allow
<ident> = <expression>
in objects. The best solution would of course be to correctly identify it as jsDestructuringBlock.I tried to boil things down further.
This reproduces the issue
While this works
Note: Remove the comments to reproduce.
The text was updated successfully, but these errors were encountered: