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
#6380 will be landed in v11. This changes the user's coding experience for the better.
So I wonder if the same improvement can be applied to other comma-separated things like literals and some expressions, which are currently formatted by the line-width rule.
arrays:
leta= ["foo", "bar", "baz"]
// intoleta= [
"foo",
"bar",
"baz", // automatically add trailing comma will be nicer
]
types/records/objects
leta= {foo: 1, bar: 2, baz: ["foo", "bar", "baz"]}
// intoleta= {
foo: 1,
bar: 2,
baz: ["foo", "bar", "baz"],
}
// and thenleta= {
foo: 1,
bar: 2,
baz: [
"foo",
"bar",
"baz",
],
}
fn applications:
// same as abovelet_=func(~param1="foo", ~param2=["foo", "bar"])
// intolet_=func(
~param1="foo",
~param2=["foo", "bar"],
)
// and thenlet_=func(
~param1="foo",
~param2=[
"foo",
"bar",
],
)
And also I strongly want similar to be in JSX but not sure how much more complicated it will
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
#6380 will be landed in v11. This changes the user's coding experience for the better.
So I wonder if the same improvement can be applied to other comma-separated things like literals and some expressions, which are currently formatted by the line-width rule.
arrays:
types/records/objects
fn applications:
And also I strongly want similar to be in JSX but not sure how much more complicated it will
The text was updated successfully, but these errors were encountered: