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/max-len.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/max-len.js')
-rw-r--r-- | tools/node_modules/eslint/lib/rules/max-len.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/node_modules/eslint/lib/rules/max-len.js b/tools/node_modules/eslint/lib/rules/max-len.js index 13dd72160c..d74373e9ea 100644 --- a/tools/node_modules/eslint/lib/rules/max-len.js +++ b/tools/node_modules/eslint/lib/rules/max-len.js @@ -78,7 +78,11 @@ module.exports = { OPTIONS_OR_INTEGER_SCHEMA, OPTIONS_OR_INTEGER_SCHEMA, OPTIONS_SCHEMA - ] + ], + messages: { + max: "Line {{lineNumber}} exceeds the maximum line length of {{maxLength}}.", + maxComment: "Line {{lineNumber}} exceeds the maximum comment line length of {{maxCommentLength}}." + } }, create(context) { @@ -341,7 +345,7 @@ module.exports = { context.report({ node, loc: { line: lineNumber, column: 0 }, - message: "Line {{lineNumber}} exceeds the maximum comment line length of {{maxCommentLength}}.", + messageId: "maxComment", data: { lineNumber: i + 1, maxCommentLength @@ -352,7 +356,7 @@ module.exports = { context.report({ node, loc: { line: lineNumber, column: 0 }, - message: "Line {{lineNumber}} exceeds the maximum line length of {{maxLength}}.", + messageId: "max", data: { lineNumber: i + 1, maxLength |