npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-dhwani-gatepass

v1.0.0

Published

Custom ESLint rules for Dhwani Gatepass

Readme

eslint-plugin-dhwani-gatepass

This ESLint plugin contains a set of custom rules specifically designed for enforcing coding standards and practices within Dhwani projects. It helps maintain code quality, consistency, and avoids common coding pitfalls.

Installation

To use eslint-plugin-dhwani-gatepass in your project, you'll need to install ESLint first, if you haven't already:

npm install eslint --save-dev

Next, install eslint-plugin-dhwani-gatepass:

npm install eslint-plugin-dhwani-gatepass --save-dev

Add dhwani-gatepass to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "dhwani-gatepass"
  ]
}

Then configure the rules you want to use under the rules section:

{
  "rules": {
    "dhwani-gatepass/function-name-specific": "error",
    "dhwani-gatepass/method-name-action": "error",
    "dhwani-gatepass/url-no-underscores": "error",
    // Add additional rules here
  }
}

Supported Rules

  • function-name-specific: Ensure function names are specific and clearly indicate their purpose.
  • method-name-action: Enforce method names to be verbs, clearly indicating actions.
  • url-no-underscores: Ensure that URLs do not contain underscores to adhere to standard URL practices.
  • header-comment-required: Require a header comment for each function explaining its purpose.
  • return-values-documented: Ensure that return values for functions are documented.
  • unique-names-within-directory: Enforce unique naming within a directory scope.
  • reusable-code-comments: Ensure reusable blocks of code have appropriate comments.
  • generic-code-no-client-name: Check that generic code does not include client-specific names or descriptions.
  • code-comments-version-control: Require version control annotations in code comments.
  • console-log-standards: Enforce standards for using console logs for debugging purposes.
  • helper-functions-maintained: Ensure helper functions are maintained and used appropriately.
  • no-sensitive-info: Prevent hard-coded sensitive information from appearing in the code.
  • file-upload-permissible-types: Restrict file uploads to permissible file types.
  • file-upload-size-restriction: Ensure file uploads do not exceed specified size limits.
  • csv-upload-admin-only: Allow CSV uploads only for admin users. session-timeout-enforced: Enforce session timeout settings.
  • logging-for-troubleshooting: Require adequate logging for troubleshooting purposes.
  • efficient-algorithms-used: Encourage the use of efficient algorithms. comments-not-missing-outdated: Check for missing or outdated comments.
  • clear-dependency-documentation: Require clear documentation for all external dependencies.
  • cross-browser-compatibility: Ensure code is compatible across all targeted browsers.

For more details on configuring the rules, please refer to the ESLint documentation.

Contributing

Contributions to improve eslint-plugin-dhwani-gatepass are welcome. Please ensure to run tests and lint your code before submitting a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Notes

  • Replace any placeholders like plugin rules or descriptions with actual information specific to what each rule does based on your implementation.
  • Ensure the installation instructions are correct based on how you have structured your npm package.
  • You may want to include a section on testing if your plugin includes complex logic or if you want to encourage community contributions.