mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 file changed
+2
-2
+2
-2
@@ -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 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.
|
||||
ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
|
||||
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
|
||||
ignoreInlineComments: true,
|
||||
ignoreConsecutiveComments: true,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user