diff options
author | Rich Trott <rtrott@gmail.com> | 2015-10-05 14:59:36 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-10-07 20:39:16 -0700 |
commit | 5d9f83ff2a47e64d372640265f63bf4a33e05566 (patch) | |
tree | aa253b0ac4db51dd433e4ea0757b5bd9c2790e5f /tools | |
parent | 651a5b51eb838e8e23a5b94ba34e8e06630a004a (diff) | |
download | nodejs-5d9f83ff2a47e64d372640265f63bf4a33e05566.tar.gz nodejs-5d9f83ff2a47e64d372640265f63bf4a33e05566.tar.bz2 nodejs-5d9f83ff2a47e64d372640265f63bf4a33e05566.zip |
tools: apply linting to custom rules code
Apply our eslint rules to the code for our custom eslint rules.
Eslint Inception! Maybe. I never saw that movie...
PR-URL: https://github.com/nodejs/node/pull/3195
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/eslint-rules/require-buffer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint-rules/require-buffer.js b/tools/eslint-rules/require-buffer.js index 7a975df58..4fec765d7 100644 --- a/tools/eslint-rules/require-buffer.js +++ b/tools/eslint-rules/require-buffer.js @@ -8,9 +8,9 @@ module.exports = function(context) { 'Program:exit': function() { context.getScope().through.forEach(function(ref) { if (ref.identifier.name === 'Buffer') { - context.report(ref.identifier, msg); + context.report(ref.identifier, msg); } }); } - } -} + }; +}; |