From af102c6d277165a641a4082b0641388807985875 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 18 Jan 2019 16:09:54 -0500 Subject: 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 Reviewed-By: Masashi Hirano --- tools/node_modules/eslint/lib/rules/max-lines-per-function.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/node_modules/eslint/lib/rules/max-lines-per-function.js') diff --git a/tools/node_modules/eslint/lib/rules/max-lines-per-function.js b/tools/node_modules/eslint/lib/rules/max-lines-per-function.js index 8c64a20bcc..d1e4597a22 100644 --- a/tools/node_modules/eslint/lib/rules/max-lines-per-function.js +++ b/tools/node_modules/eslint/lib/rules/max-lines-per-function.js @@ -80,7 +80,10 @@ module.exports = { schema: [ OPTIONS_OR_INTEGER_SCHEMA - ] + ], + messages: { + exceed: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}." + } }, create(context) { @@ -201,7 +204,7 @@ module.exports = { context.report({ node, - message: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}.", + messageId: "exceed", data: { name, lineCount, maxLines } }); } -- cgit v1.2.1