summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/max-lines-per-function.js
diff options
context:
space:
mode:
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 }
});
}