From 39141426d46a7e55d93ad2e8efa12ed86d223522 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Fri, 22 Mar 2019 03:45:25 +0100 Subject: [PATCH] tools: update capitalize-comments eslint rule This strictens the rule to apply from 20 characters on instead of from 30. PR-URL: https://github.com/nodejs/node/pull/26849 Reviewed-By: Rich Trott Reviewed-By: Vse Mozhet Byt --- .eslintrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f5202002f39923..54595a8b74d9a9 100644 --- a/.eslintrc.js +++ b/.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, },