Socket
Book a DemoInstallSign in
Socket

eslint-plugin-restify-use-next

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-restify-use-next

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

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

eslint-plugin-restify-use-next

FAQs

Package last updated on 23 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.