★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/39141426d4Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
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 <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
BridgeAR committed Mar 27, 2019
1 parent b08a867 commit 39141426d46a7e55d93ad2e8efa12ed86d223522
Showing with 2 additions and 2 deletions.
  1. +2 −2 .eslintrc.js
@@ -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,
},

0 comments on commit 3914142

Please sign in to comment.