Skip to content

Commit 3914142

Browse files
committed
tools: update capitalize-comments eslint rule
This strictens the rule to apply from 20 characters on instead of from 30. PR-URL: #26849 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent b08a867 commit 3914142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ module.exports = {
6060
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
6161
'capitalized-comments': ['error', 'always', {
6262
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
6464
// start with something that looks like a variable name or code.
65-
ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
65+
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
6666
ignoreInlineComments: true,
6767
ignoreConsecutiveComments: true,
6868
},

0 commit comments

Comments
 (0)