45 lines
990 B
Markdown
45 lines
990 B
Markdown
#### Fix inconsistent comment format (#17723 by @fisker)
|
|
|
|
<!-- prettier-ignore -->
|
|
```jsx
|
|
// Input
|
|
if (
|
|
true
|
|
// This is a really complicated part of the condition, so we need a big ol'
|
|
// comment here to explain it.
|
|
&& flibble.blibble.blobble?.bloo
|
|
) {
|
|
doThings();
|
|
}
|
|
|
|
// Prettier stable (--parser=typescript --experimental-operator-position=start)
|
|
if (
|
|
true
|
|
&& // This is a really complicated part of the condition, so we need a big ol'
|
|
// comment here to explain it.
|
|
flibble.blibble.blobble?.bloo
|
|
) {
|
|
doThings();
|
|
}
|
|
|
|
// Prettier stable (--parser=babel --experimental-operator-position=start)
|
|
if (
|
|
true
|
|
// This is a really complicated part of the condition, so we need a big ol'
|
|
// comment here to explain it.
|
|
&& flibble.blibble.blobble?.bloo
|
|
) {
|
|
doThings();
|
|
}
|
|
|
|
// Prettier main
|
|
if (
|
|
true
|
|
// This is a really complicated part of the condition, so we need a big ol'
|
|
// comment here to explain it.
|
|
&& flibble.blibble.blobble?.bloo
|
|
) {
|
|
doThings();
|
|
}
|
|
```
|