prettier/tests/trailing_comma/trailing_whitespace.js

44 lines
503 B
JavaScript

let example = [
'FOO',
'BAR',
// Comment
];
foo({},
// Comment
);
o = {
state,
// Comment
};
o = {
state,
// Comment
};
function supersupersupersuperLongF(
supersupersupersuperLongA,
supersupersupersuperLongB
// Comment
) {
a
}
function supersupersupersuperLongF(
supersupersupersuperLongA,
supersupersupersuperLongB,
// Comment
) {
a
}
this.getAttribute(function(s)
/*string*/ {
console.log()
});
this.getAttribute(function(s) /*string*/ {
console.log()
});