UNPKG

prettierx

Version:

prettierX - a less opinionated fork of the Prettier code formatter

54 lines (51 loc) 999 B
"use strict"; const { getMaxContinuousCount, getStringWidth, getAlignmentSize, getIndentSize, skip, skipWhitespace, skipSpaces, skipNewline, skipToLineEnd, skipEverythingButNewLine, skipInlineComment, skipTrailingComment, hasNewline, hasNewlineInRange, hasSpaces, isNextLineEmpty, isNextLineEmptyAfterIndex, isPreviousLineEmpty, getNextNonSpaceNonCommentCharacterIndex, makeString, addLeadingComment, addDanglingComment, addTrailingComment, } = require("./util"); module.exports = { getMaxContinuousCount, getStringWidth, getAlignmentSize, getIndentSize, skip, skipWhitespace, skipSpaces, skipNewline, skipToLineEnd, skipEverythingButNewLine, skipInlineComment, skipTrailingComment, hasNewline, hasNewlineInRange, hasSpaces, isNextLineEmpty, isNextLineEmptyAfterIndex, isPreviousLineEmpty, getNextNonSpaceNonCommentCharacterIndex, makeString, addLeadingComment, addDanglingComment, addTrailingComment, };