summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/max-lines-per-function.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-01-18 16:09:54 -0500
committercjihrig <cjihrig@gmail.com>2019-01-20 20:31:03 -0500
commitaf102c6d277165a641a4082b0641388807985875 (patch)
treeaf55616aa0751e0896699899a2d3fc2f9c7f1802 /tools/node_modules/eslint/lib/rules/max-lines-per-function.js
parentd1dee495db1451e74f5364c8687148a53ff0b50d (diff)
downloadnode-new-af102c6d277165a641a4082b0641388807985875.tar.gz
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/max-lines-per-function.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/max-lines-per-function.js7
1 files changed, 5 insertions, 2 deletions
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 }
});
}