tools: update capitalize-comments eslint rule
This strictens the rule to apply from 20 characters on instead of from 30. PR-URL: https://github.com/nodejs/node/pull/26849 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
b08a867d60
commit
39141426d4
@ -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 30 and all lines that
|
// Ignore all lines that have less characters than 20 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,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
|
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
|
||||||
ignoreInlineComments: true,
|
ignoreInlineComments: true,
|
||||||
ignoreConsecutiveComments: true,
|
ignoreConsecutiveComments: true,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user