I previously worked on the no-callback-err
<http://eslint.org/docs/rules/handle-callback-err.html> rule which ensures
that you handle errors in your callbacks. Your idea makes a ton of sense
would probably use similar logic to that one. I'd say build it. I'd be
happy to review it with you or think about edge cases!
On Thursday, October 9, 2014 12:24:12 PM UTC-7, hellboy wrote:
>
> Is there plugin to check if in Node.js code callbacks are used properly?
>
> For example
>
>
> function (param1, callback) {
>
> // Calling async function
> fs.deletFile (param2, function(err) {
> if (err) return callback(err):
>
> // Here we forget to call callback
> // This issue should be reported
> // callback();
> });
> }
>
>
>
--
You received this message because you are subscribed to the Google Groups
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.