diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-03 19:15:45 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-10 19:07:18 +0300 |
commit | 1f85ea979ccef3c52ec4ca3263306e527b625498 (patch) | |
tree | f318be6ee905b1a04d1d2db859720c4b33b22aa8 /lib/internal/repl | |
parent | cc8250fab86486632fdeb63892be735d7628cd13 (diff) |
tools: capitalize sentences
This adds the `capitalized-comments` eslint rule to verify that
actual sentences use capital letters as starting letters. It ignores
special words and all lines below 62 characters.
PR-URL: https://github.com/nodejs/node/pull/24808
Reviewed-By: Sam Ruby <rubys@intertwingly.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'lib/internal/repl')
-rw-r--r-- | lib/internal/repl/recoverable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/repl/recoverable.js b/lib/internal/repl/recoverable.js index 023de2f7abc..2c31db9faf6 100644 --- a/lib/internal/repl/recoverable.js +++ b/lib/internal/repl/recoverable.js @@ -45,7 +45,7 @@ function isRecoverableError(e, code) { case 'Unterminated string constant': const token = this.input.slice(this.lastTokStart, this.pos); - // see https://www.ecma-international.org/ecma-262/#sec-line-terminators + // See https://www.ecma-international.org/ecma-262/#sec-line-terminators recoverable = /\\(?:\r\n?|\n|\u2028|\u2029)$/.test(token); } |