eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
15 lines (12 loc) • 576 B
JavaScript
;
const SINGLE_LINE_BOILERPLATE_SIZE = 5;
const MULTILINE_BOILERPLATE_SIZE = 2;
const FIRST_LINE_BOILERPLATE_SIZE = 3;
function getBoilerPlateSize(commentLines) {
return commentLines.length === 1 ? SINGLE_LINE_BOILERPLATE_SIZE : MULTILINE_BOILERPLATE_SIZE;
}
exports.FIRST_LINE_BOILERPLATE_SIZE = FIRST_LINE_BOILERPLATE_SIZE;
exports.MULTILINE_BOILERPLATE_SIZE = MULTILINE_BOILERPLATE_SIZE;
exports.SINGLE_LINE_BOILERPLATE_SIZE = SINGLE_LINE_BOILERPLATE_SIZE;
exports.getBoilerPlateSize = getBoilerPlateSize;
//# sourceMappingURL=util.boilerplate-size.cjs.map