eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
9 lines (6 loc) • 335 B
JavaScript
import { isURL } from './is-url.js';
function isLineOverflowing(line, context) {
return (!context.ignoreUrls || !isURL(line)) && line.trim().split(" ").length > 1 && line.length + context.whitespace.size + context.boilerplateSize > context.maxLength;
}
export { isLineOverflowing };
//# sourceMappingURL=is-line-overflowing.js.map