summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/id-match.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-12-31 21:40:59 -0800
committerRich Trott <rtrott@gmail.com>2017-01-06 14:36:27 -0800
commitf44969a5aba6b447f7c1a715c5009644cbd49a5b (patch)
tree52cf860a27ad101bee24f4588d93d1c9fc6dba7f /tools/eslint/lib/rules/id-match.js
parenta68987c154fbc041ea6d03ffdafa447e8c8a26f5 (diff)
downloadnode-new-f44969a5aba6b447f7c1a715c5009644cbd49a5b.tar.gz
tools: update ESLint to current version
We have been stalled on ESLint 3.8.0 for some time. Current ESLint is 3.13.0. We have been unable to upgrade because of more aggressive reporting on some rules, including indentation. ESLint configuration options and bugfixes are now such that we can reasonably upgrade. PR-URL: https://github.com/nodejs/node/pull/10561 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/id-match.js')
-rw-r--r--tools/eslint/lib/rules/id-match.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/id-match.js b/tools/eslint/lib/rules/id-match.js
index 961a185904..29d06c3602 100644
--- a/tools/eslint/lib/rules/id-match.js
+++ b/tools/eslint/lib/rules/id-match.js
@@ -75,10 +75,10 @@ module.exports = {
* @private
*/
function report(node) {
- context.report(node, "Identifier '{{name}}' does not match the pattern '{{pattern}}'.", {
+ context.report({ node, message: "Identifier '{{name}}' does not match the pattern '{{pattern}}'.", data: {
name: node.name,
pattern
- });
+ } });
}
return {