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:
parent
f8763bb077
commit
3414bc7b25
@ -60,9 +60,9 @@ module.exports = {
|
|||||||
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
||||||
'capitalized-comments': ['error', 'always', {
|
'capitalized-comments': ['error', 'always', {
|
||||||
line: {
|
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.
|
// 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,
|
ignoreInlineComments: true,
|
||||||
ignoreConsecutiveComments: true,
|
ignoreConsecutiveComments: true,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user