tools: update capitalize-comments eslint rule · nodejs/node@3914142 (original) (raw)

Original file line number Diff line number Diff line change
@@ -60,9 +60,9 @@ module.exports = {
60 60 'brace-style': ['error', '1tbs', { allowSingleLine: true }],
61 61 'capitalized-comments': ['error', 'always', {
62 62 line: {
63 -// Ignore all lines that have less characters than 30 and all lines that
63 +// Ignore all lines that have less characters than 20 and all lines that
64 64 // start with something that looks like a variable name or code.
65 -ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]
65 +ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]
66 66 ignoreInlineComments: true,
67 67 ignoreConsecutiveComments: true,
68 68 },