eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
1 lines • 805 B
Source Map (JSON)
{"version":3,"file":"util.boilerplate-size.cjs","sources":["../../../../src/rules/limit-multi-line-comments/util.boilerplate-size.ts"],"sourcesContent":["export const SINGLE_LINE_BOILERPLATE_SIZE = 5; // i.e. '/**'.length + '*/'.length\nexport const MULTILINE_BOILERPLATE_SIZE = 2; // i.e. '/*'.length OR '*/'.length OR ' *'.length\nexport const FIRST_LINE_BOILERPLATE_SIZE = 3; // i.e. '/**'.length\n\nexport function getBoilerPlateSize(commentLines: string[]): number {\n return commentLines.length === 1\n ? SINGLE_LINE_BOILERPLATE_SIZE\n : MULTILINE_BOILERPLATE_SIZE;\n}\n"],"names":[],"mappings":";;AAAO,MAAM,4BAA+B,GAAA,EAAA;AACrC,MAAM,0BAA6B,GAAA,EAAA;AACnC,MAAM,2BAA8B,GAAA,EAAA;AAEpC,SAAS,mBAAmB,YAAgC,EAAA;AACjE,EAAO,OAAA,YAAA,CAAa,MAAW,KAAA,CAAA,GAC3B,4BACA,GAAA,0BAAA,CAAA;AACN;;;;;;;"}