summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/max-lines.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-08-26 23:02:28 -0700
committerRich Trott <rtrott@gmail.com>2016-08-30 10:40:45 -0700
commit201115812e4dc828fa0f122a373ee739850d1f16 (patch)
tree893ec3a9f30b6f2396b64206acf39f3bdb0b780e /tools/eslint/lib/rules/max-lines.js
parent932c824c600167d3057d3b42b6b0b81468334efb (diff)
downloadnode-new-201115812e4dc828fa0f122a373ee739850d1f16.tar.gz
tools: update ESLint to 3.4.0
PR-URL: https://github.com/nodejs/node/pull/8296 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools/eslint/lib/rules/max-lines.js')
-rw-r--r--tools/eslint/lib/rules/max-lines.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/max-lines.js b/tools/eslint/lib/rules/max-lines.js
index 333167de4b..a54ad9e353 100644
--- a/tools/eslint/lib/rules/max-lines.js
+++ b/tools/eslint/lib/rules/max-lines.js
@@ -51,7 +51,7 @@ module.exports = {
]
},
- create: function(context) {
+ create(context) {
const option = context.options[0];
let max = 300;
@@ -113,9 +113,9 @@ module.exports = {
}
return {
- "Program:exit": function() {
+ "Program:exit"() {
let lines = sourceCode.lines.map(function(text, i) {
- return { lineNumber: i + 1, text: text };
+ return { lineNumber: i + 1, text };
});
if (skipBlankLines) {