Improve doc printer when printWidth: Infinity (#14638)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-03-31 16:47:26 +08:00
1 parent ca2c0ccacb
commit a78e514d77
1 file changed
+4
+4
View File
@@ -201,6 +201,10 @@ function fits(
groupModeMap,
mustBeFlat
) {
if (width === Number.POSITIVE_INFINITY) {
return true;
}
let restIdx = restCommands.length;
/** @type {Array<Omit<Command, 'ind'>>} */
const cmds = [next];