UNPKG

eslint-plugin-comment-length

Version:

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

19 lines (16 loc) 542 B
import { isLineOverflowing } from '../../utils/is-line-overflowing.js'; 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(line, context)) { problematicBlocks.push(block); break; } } } return problematicBlocks; } export { detectOverflowInMultilineBlocks }; //# sourceMappingURL=detect.overflow.js.map