0.0.4 • Published 9 months ago

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

Weekly downloads
7
License
MIT
Repository
github
Last release
9 months 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.

0.0.4

9 months ago

0.0.3

2 years ago

0.0.2

2 years ago