eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
21 lines (17 loc) • 607 B
JavaScript
;
var isLineOverflowing = require('../../utils/is-line-overflowing.cjs');
function detectOverflowInMultilineBlocks(_ruleContext, context, blocks) {
const problematicBlocks = [];
for (const block of blocks) {
for (let i = 0; i < block.lines.length; i++) {
const line = block.lines[i];
if (line && isLineOverflowing.isLineOverflowing(line, context)) {
problematicBlocks.push(block);
break;
}
}
}
return problematicBlocks;
}
exports.detectOverflowInMultilineBlocks = detectOverflowInMultilineBlocks;
//# sourceMappingURL=detect.overflow.cjs.map