Fix inconsistent break for array literals (#18172)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c7e1512377
commit
fb66c7dfcf
5 files changed
+76
-19
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#### 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],
|
||||
);
|
||||
```
|
||||
Reference in new issue
Block a user