Skip to content

Commit 3e2e779

Browse files
committed
tools: update capitalized-comments rule
This strictens to rule to validate comments from 30 characters on. PR-URL: #26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 52a0d76 commit 3e2e779

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 40 and all lines that
63+
// Ignore all lines that have less characters than 30 and all lines that
6464
// start with something that looks like a variable name or code.
65-
ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
65+
ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
6666
ignoreInlineComments: true,
6767
ignoreConsecutiveComments: true,
6868
},

0 commit comments

Comments
 (0)