tools: update capitalized-comments rule

This strictens to rule to validate comments from 30 characters on.

PR-URL: https://github.com/nodejs/node/pull/26483
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Ruben Bridgewater 2019-03-07 01:04:22 +01:00
parent f8763bb077
commit 3414bc7b25
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -60,9 +60,9 @@ module.exports = {
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {
line: {
// Ignore all lines that have less characters than 40 and all lines that
// Ignore all lines that have less characters than 30 and all lines that
// start with something that looks like a variable name or code.
ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},