Commit graph

8 commits

Author SHA1 Message Date
Boshen
7d9d04c569
refactor(prettier): align line with prettier (#1559)
This PR alines all the line types with prettier

```
const hardlineWithoutBreakParent = { type: DOC_TYPE_LINE, hard: true };
const literallineWithoutBreakParent = {
  type: DOC_TYPE_LINE,
  hard: true,
  literal: true,
};


const line = { type: DOC_TYPE_LINE };
const softline = { type: DOC_TYPE_LINE, soft: true };
const hardline = [hardlineWithoutBreakParent, breakParent];
const literalline = [literallineWithoutBreakParent, breakParent];
```

101598f94f/src/document/builders.js (L165-L175)
2023-11-27 23:11:53 +08:00
Wenzhe Wang
924d99e8d7
feat(prettier): init command of Fill (#1460) 2023-11-25 12:03:26 +08:00
Dunqing
75c75887e3
feat(prettier): trim spaces when printing hardline (#1531) 2023-11-24 17:05:20 +08:00
Dunqing
40be405a57
feat(prettier): support for printing objects with longer properties (#1353) 2023-11-16 20:48:27 +08:00
Cameron
9c170b89ff
refactor(prettier) Remove flat_contents from IfBreak (#1324) 2023-11-15 10:13:30 +08:00
Cameron
ebcd707e8b
feat(prettier) Get indentation working (#1322) 2023-11-15 09:58:35 +08:00
Boshen
90c7fee1bc
refactor(prettier): make the printer code more rusty (#1296) 2023-11-14 13:54:32 +08:00
Boshen
a8ecdaecb9
refactor(prettier): move printer.rs to its own folder (#1294) 2023-11-14 13:42:41 +08:00