diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-22 03:45:25 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-27 17:20:07 +0100 |
commit | 39141426d46a7e55d93ad2e8efa12ed86d223522 (patch) | |
tree | 3da918af599566534288ab7be1f985db879f8e3f /.eslintrc.js | |
parent | b08a867d6016ccf04783a0f91fdbcc3460daf234 (diff) | |
download | android-node-v8-39141426d46a7e55d93ad2e8efa12ed86d223522.tar.gz android-node-v8-39141426d46a7e55d93ad2e8efa12ed86d223522.tar.bz2 android-node-v8-39141426d46a7e55d93ad2e8efa12ed86d223522.zip |
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 <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index f5202002f3..54595a8b74 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, }, |