summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-duplicate-imports.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-09-09 17:07:54 -0700
committerRich Trott <rtrott@gmail.com>2016-09-12 21:11:55 -0700
commit2da2625ad16b09c25d7622c91ffe1d940e44e41a (patch)
tree1703937d59bd6723cbbd97a2219aaa5e301fad85 /tools/eslint/lib/rules/no-duplicate-imports.js
parenta6b1f175c2368bb749c6c58a9d8df22e8c72a377 (diff)
downloadnode-new-2da2625ad16b09c25d7622c91ffe1d940e44e41a.tar.gz
tools: update ESLint to 3.5.0
PR-URL: https://github.com/nodejs/node/pull/8478 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/no-duplicate-imports.js')
-rw-r--r--tools/eslint/lib/rules/no-duplicate-imports.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/no-duplicate-imports.js b/tools/eslint/lib/rules/no-duplicate-imports.js
index 05ca4196d7..d12c3a56df 100644
--- a/tools/eslint/lib/rules/no-duplicate-imports.js
+++ b/tools/eslint/lib/rules/no-duplicate-imports.js
@@ -37,8 +37,11 @@ function checkAndReport(context, node, value, array, message) {
if (array.indexOf(value) !== -1) {
context.report({
node,
- message: "'{{module}}' " + message,
- data: {module: value}
+ message: "'{{module}}' {{message}}",
+ data: {
+ module: value,
+ message
+ }
});
}
}