diff options
author | Rich Trott <rtrott@gmail.com> | 2016-07-07 15:44:32 -0700 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2016-07-15 08:09:42 -0500 |
commit | df697c486e7af5b50efca4a21105bb137cbeddbd (patch) | |
tree | f5ecf30000db4281c3538df7b9372ede231d9f8a /tools/eslint/lib/rules/newline-after-var.js | |
parent | a81ff702cc57f9d7912cdbbcee826af9cda35915 (diff) | |
download | node-new-df697c486e7af5b50efca4a21105bb137cbeddbd.tar.gz |
tools: update ESLint, fix unused vars bug
Update ESLint to 3.0.0. This includes an enhancement to `no-unused-vars`
such that it finds a few instances in our code base that it did not find
previously (fixed in previous commits readying this for landing).
PR-URL: https://github.com/nodejs/node/pull/7601
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools/eslint/lib/rules/newline-after-var.js')
-rw-r--r-- | tools/eslint/lib/rules/newline-after-var.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/newline-after-var.js b/tools/eslint/lib/rules/newline-after-var.js index fd80c8c542..8801407c0b 100644 --- a/tools/eslint/lib/rules/newline-after-var.js +++ b/tools/eslint/lib/rules/newline-after-var.js @@ -35,7 +35,7 @@ module.exports = { var mode = context.options[0] === "never" ? "never" : "always"; // Cache starting and ending line numbers of comments for faster lookup - var commentEndLine = context.getAllComments().reduce(function(result, token) { + var commentEndLine = sourceCode.getAllComments().reduce(function(result, token) { result[token.loc.start.line] = token.loc.end.line; return result; }, {}); |