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
in the objects it works wonderfully when the user decides to choose between multilines or line for each element but in the destructuring of objects within a function it does not work correctly, it is formatted by force:
So far so good but when I try to do it with object destruction for a function then it doesn't accept my decision and forcefully formats it according to the "printWidth" property.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
in the objects it works wonderfully when the user decides to choose between multilines or line for each element but in the destructuring of objects within a function it does not work correctly, it is formatted by force:
previous object:
formatted object:
So far so good but when I try to do it with object destruction for a function then it doesn't accept my decision and forcefully formats it according to the "printWidth" property.
previous function:
formatted function:
It's kind of annoying because eslint configurers have to disable 3-item multilines like this:
Beta Was this translation helpful? Give feedback.
All reactions