-- file.tsx --
~~ lineWidth: 50 ~~
== should format ==
const t = < Test >Test;
[expect]
const t = Test;
== should format when has attributes ==
const t = < / Test > ;
[expect]
const t = ;
== should make the body multi-line when the header is multiple lines ==
const t = Test;
[expect]
const t = (
Test
);
== should make the body multi-line when the header is multiple lines and inside parens ==
const t = (
Test
);
[expect]
const t = (
Test
);
== should make the attribs multi-line when first is on a different line ==
const t = ;
[expect]
const t = (
);
== should support a comment on the next line after the name ==
function Test() {
return ;
}
[expect]
function Test() {
return (
);
}
== should support a comment on the same line as the name ==
function Test() {
return ;
}
[expect]
function Test() {
return (
);
}
== should support comments surrounding attributes ==
function Test() {
return ;
}
[expect]
function Test() {
return (
);
}
== should support a block comment after the name ==
function Test() {
return ;
}
[expect]
function Test() {
return ;
}
== should support a comment on the next line after the name when self closing ==
function Test() {
return ;
}
[expect]
function Test() {
return (
);
}
== should support a comment on the same line as the name when self closing ==
function Test() {
return ;
}
[expect]
function Test() {
return (
);
}