eslint-plugin-restify-use-next

eslint plugin to check if you call `next()` in your restify handler

Usage no npm install needed!

<script type="module">
  import eslintPluginRestifyUseNext from 'https://cdn.skypack.dev/eslint-plugin-restify-use-next';
</script>

README

eslint-plugin-restify-use-next

NPM Version Build Status Coverage Status Dependency Status devDependency Status

eslint plugin to check if you call next() in your restify handler 🎉

What

This rule enables you to verify that you are calling next() in your restify handlers.

Not calling next() has been a common mistake. Restify is different, and you have to call next() for your handler chains to work properly.

Limitations

Works for simple cases. Open to PRs to enhance this plugin.

Getting Started

Install the module with: npm install eslint-plugin-restify-use-next --save-dev

Usage

Add to your existing eslint config file the following:

    plugins: ['restify-use-next'],
    rules: {
        'restify-use-next/restify-use-next': 2
    }

API

See API

Contributing

Ensure that all linting and codestyle tasks are passing. Add unit tests for any new or changed functionality.

Before committing, lint and test your code using the included Makefile:

make prepush

License

Copyright (c) 2019 Rajat Kumar

Licensed under the MIT license.