Skip to content

Commit 47184d1

Browse files
BridgeARtargos
authored andcommitted
tools: update capitalized-comments eslint rule
The regular expression is updated to ignore variable declarations which might happen while commenting out some code during development and adds a couple more exceptions to prevent false negatives. PR-URL: #27675 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent 6983a0c commit 47184d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ module.exports = {
6666
line: {
6767
// Ignore all lines that have less characters than 20 and all lines that
6868
// start with something that looks like a variable name or code.
69-
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
69+
// eslint-disable-next-line max-len
70+
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp|(let|var|const) [a-z_A-Z0-9]+ =|[b-z] |[a-z]*[0-9].* ',
7071
ignoreInlineComments: true,
7172
ignoreConsecutiveComments: true,
7273
},

0 commit comments

Comments
 (0)