UNPKG

eslint-plugin-comment-length

Version:

An ESLint plugin that provides rules that limit the line length of your comments

18 lines (15 loc) 466 B
import { isPunctuation } from './is-punctuation.js'; function isAnotherWrapPointComing(currentLength, maxLength, wordsToCome) { for (const word of wordsToCome) { if (isPunctuation(word.at(-1)) && word.length > 1) { return true; } currentLength += word.length + 1; if (currentLength >= maxLength) { return false; } } return false; } export { isAnotherWrapPointComing }; //# sourceMappingURL=is-another-wrap-point-coming.js.map