-- file.tsx --
~~ jsx.multiLineParens: never ~~
== should format ==
const t = ;
[expect]
const t = ;
== should keep comments within the expression ==
const t1 =
{
test
/* test */
}
;
const t2 =
{/* test */test}
;
const t3 =
{test/* test */}
;
const t4 =
{
/* test */
test
}
;
const t5 =
{//test
t}
;
const t6 =
{t//test
}
;
[expect]
const t1 =
{
test
/* test */
}
;
const t2 =
{/* test */ test}
;
const t3 =
{test /* test */}
;
const t4 =
{
/* test */
test
}
;
const t5 =
{
// test
t
}
;
const t6 =
{
t // test
}
;