eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
10 lines (8 loc) • 428 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;
}
export { FIRST_LINE_BOILERPLATE_SIZE, MULTILINE_BOILERPLATE_SIZE, SINGLE_LINE_BOILERPLATE_SIZE, getBoilerPlateSize };
//# sourceMappingURL=util.boilerplate-size.js.map