summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-07 01:04:22 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-10 00:44:41 +0100
commit3414bc7b25a00556af80c6ba946e28464e7e8d36 (patch)
tree4b6bb5a85292bb98799d351662d62be7f1092f9a /.eslintrc.js
parentf8763bb077db2f0be74e353c0b4f9e353c0fffa8 (diff)
downloadandroid-node-v8-3414bc7b25a00556af80c6ba946e28464e7e8d36.tar.gz
android-node-v8-3414bc7b25a00556af80c6ba946e28464e7e8d36.tar.bz2
android-node-v8-3414bc7b25a00556af80c6ba946e28464e7e8d36.zip
tools: update capitalized-comments rule
This strictens to rule to validate comments from 30 characters on. PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 03dd8e47b8..475c75ff96 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 40 and all lines that
+ // Ignore all lines that have less characters than 30 and all lines that
// start with something that looks like a variable name or code.
- ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
+ ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},