eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
11 lines (7 loc) • 374 B
JavaScript
;
var isUrl = require('./is-url.cjs');
function isLineOverflowing(line, context) {
return (!context.ignoreUrls || !isUrl.isURL(line)) && line.trim().split(" ").length > 1 && line.length + context.whitespace.size + context.boilerplateSize > context.maxLength;
}
exports.isLineOverflowing = isLineOverflowing;
//# sourceMappingURL=is-line-overflowing.cjs.map