Skip to content

Commit

Permalink
tools: update capitalize-comments eslint rule
Browse files Browse the repository at this point in the history
This strictens the rule to apply from 20 characters on instead of
from 30.

PR-URL: #26849
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
BridgeAR authored and BethGriggs committed Apr 4, 2019
1 parent 4e565da commit 3658718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 3658718

Please sign in to comment.