Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
28 lines
679 B
Markdown
28 lines
679 B
Markdown
#### Fix inconsistent break for array literals (#18172 by @Dunqing, @fisker)
|
|
|
|
<!-- prettier-ignore -->
|
|
```jsx
|
|
// Input
|
|
assert.deepStrictEqual(linesCollection.getViewLinesIndentGuides___(-1, -1), [1]);
|
|
assert.deepStrictEqual(linesCollection.getViewLinesIndentGuides(-1, -1), [1, 2]);
|
|
|
|
// Prettier stable
|
|
assert.deepStrictEqual(linesCollection.getViewLinesIndentGuides___(-1, -1), [
|
|
1,
|
|
]);
|
|
assert.deepStrictEqual(
|
|
linesCollection.getViewLinesIndentGuides(-1, -1),
|
|
[1, 2],
|
|
);
|
|
|
|
// Prettier main
|
|
assert.deepStrictEqual(
|
|
linesCollection.getViewLinesIndentGuides___(-1, -1),
|
|
[1],
|
|
);
|
|
assert.deepStrictEqual(
|
|
linesCollection.getViewLinesIndentGuides(-1, -1),
|
|
[1, 2],
|
|
);
|
|
```
|