0.0.4 • Published 4 years ago

eslint-plugin-restify-use-next v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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.