summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-05-13 14:38:44 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-05-16 12:56:14 +0200
commit5b26609e5a706c43bdf0683d09db154b93c8c479 (patch)
tree566e9449f487ccc06d68296b0d3ac5671eb5ab9e /.eslintrc.js
parente632b1b7eeb0900472c710ae7269111d985de018 (diff)
downloadandroid-node-v8-5b26609e5a706c43bdf0683d09db154b93c8c479.tar.gz
android-node-v8-5b26609e5a706c43bdf0683d09db154b93c8c479.tar.bz2
android-node-v8-5b26609e5a706c43bdf0683d09db154b93c8c479.zip
tools: update capitalized-comments eslint rule
The regular expression is updated to ignore variable declarations which might happen while commenting out some code during development and adds a couple more exceptions to prevent false negatives. PR-URL: https://github.com/nodejs/node/pull/27675 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index b8ce85fa82..ff117624f5 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -66,7 +66,8 @@ module.exports = {
line: {
// 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,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
+ // eslint-disable-next-line max-len
+ ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp|(let|var|const) [a-z_A-Z0-9]+ =|[b-z] |[a-z]*[0-9].* ',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},