diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-13 14:38:44 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-05-17 08:13:33 +0200 |
commit | 47184d1a0aa04d0ab456599d6542d0bfe4de1145 (patch) | |
tree | f79f3723abf405594ff3f20da0f35f17cc80334c /.eslintrc.js | |
parent | 6983a0c336386c04ed6cdee5fde7143474a2c06a (diff) | |
download | android-node-v8-47184d1a0aa04d0ab456599d6542d0bfe4de1145.tar.gz android-node-v8-47184d1a0aa04d0ab456599d6542d0bfe4de1145.tar.bz2 android-node-v8-47184d1a0aa04d0ab456599d6542d0bfe4de1145.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.js | 3 |
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, }, |