diff options
author | cjihrig <cjihrig@gmail.com> | 2019-01-18 16:09:54 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-01-20 20:31:03 -0500 |
commit | af102c6d277165a641a4082b0641388807985875 (patch) | |
tree | af55616aa0751e0896699899a2d3fc2f9c7f1802 /tools/node_modules/eslint/lib/rules/id-match.js | |
parent | d1dee495db1451e74f5364c8687148a53ff0b50d (diff) | |
download | android-node-v8-af102c6d277165a641a4082b0641388807985875.tar.gz android-node-v8-af102c6d277165a641a4082b0641388807985875.tar.bz2 android-node-v8-af102c6d277165a641a4082b0641388807985875.zip |
tools: update ESLint to 5.12.1
Update ESLint to 5.12.1
PR-URL: https://github.com/nodejs/node/pull/25573
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/id-match.js')
-rw-r--r-- | tools/node_modules/eslint/lib/rules/id-match.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/rules/id-match.js b/tools/node_modules/eslint/lib/rules/id-match.js index 4755c779ca..5dc86f8dbf 100644 --- a/tools/node_modules/eslint/lib/rules/id-match.js +++ b/tools/node_modules/eslint/lib/rules/id-match.js @@ -38,7 +38,10 @@ module.exports = { } } } - ] + ], + messages: { + notMatch: "Identifier '{{name}}' does not match the pattern '{{pattern}}'." + } }, create(context) { @@ -116,7 +119,7 @@ module.exports = { if (!reported.has(node)) { context.report({ node, - message: "Identifier '{{name}}' does not match the pattern '{{pattern}}'.", + messageId: "notMatch", data: { name: node.name, pattern |