UNPKG

@isentinel/eslint-plugin-comment-length

Version:
13 lines 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBoilerPlateSize = exports.FIRST_LINE_BOILERPLATE_SIZE = exports.MULTILINE_BOILERPLATE_SIZE = exports.SINGLE_LINE_BOILERPLATE_SIZE = void 0; exports.SINGLE_LINE_BOILERPLATE_SIZE = 5; // i.e. '/**'.length + '*/'.length exports.MULTILINE_BOILERPLATE_SIZE = 2; // i.e. '/*'.length OR '*/'.length OR ' *'.length exports.FIRST_LINE_BOILERPLATE_SIZE = 3; // i.e. '/**'.length function getBoilerPlateSize(commentLines) { return commentLines.length === 1 ? exports.SINGLE_LINE_BOILERPLATE_SIZE : exports.MULTILINE_BOILERPLATE_SIZE; } exports.getBoilerPlateSize = getBoilerPlateSize; //# sourceMappingURL=util.boilerplate-size.js.map