UNPKG

eslint-plugin-comment-length

Version:

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

6 lines (4 loc) 169 B
const punctuation = [",", ".", "?", ":", "!", ";"]; export function isPunctuation(char: string | undefined): boolean { return !!char && punctuation.includes(char); }