summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/prefer-template.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-08-06 12:11:02 -0700
committerRich Trott <rtrott@gmail.com>2016-08-09 21:19:02 -0700
commite313c0286b1c1a7267516a7b2b4c01fa76c71ec0 (patch)
tree7358ae3f4af0979c124eca46d734314df40a6bc6 /tools/eslint/lib/rules/prefer-template.js
parent49e473a45fb3e13fdd4588c6241b71bbac4fe5ab (diff)
downloadnode-new-e313c0286b1c1a7267516a7b2b4c01fa76c71ec0.tar.gz
tools: update to ESLint 3.2.2
PR-URL: https://github.com/nodejs/node/pull/7999 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'tools/eslint/lib/rules/prefer-template.js')
-rw-r--r--tools/eslint/lib/rules/prefer-template.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/prefer-template.js b/tools/eslint/lib/rules/prefer-template.js
index 0165aaecd6..4a0da8e197 100644
--- a/tools/eslint/lib/rules/prefer-template.js
+++ b/tools/eslint/lib/rules/prefer-template.js
@@ -9,7 +9,7 @@
// Requirements
//------------------------------------------------------------------------------
-var astUtils = require("../ast-utils");
+let astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
// Helpers
@@ -66,7 +66,7 @@ module.exports = {
},
create: function(context) {
- var done = Object.create(null);
+ let done = Object.create(null);
/**
* Reports if a given node is string concatenation with non string literals.
@@ -79,7 +79,7 @@ module.exports = {
return;
}
- var topBinaryExpr = getTopConcatBinaryExpression(node.parent);
+ let topBinaryExpr = getTopConcatBinaryExpression(node.parent);
// Checks whether or not this node had been checked already.
if (done[topBinaryExpr.range[0]]) {