Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-no-parameter-e

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-no-parameter-e

Not allow parameter named `e`

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-plugin-no-parameter-e

Not allow parameter named e, confused with event and error

Why

Developers usually want to use short, simple and meaningful names. Sometimes they use short form, event shorten to only 1 character. And in somecases, one character name still readable. But there are two common variable: event and error. Both starts with letter e. If they all use short form. Developers might confused what it is.

This plugin is to prevent any function parameter use the name e. Which will confuse developers.

Installation

Install local plugin:

$ npm install eslint-plugin-no-parameter-e --save-dev

If you use global eslint, you need install this plugin global too.

Configuration

Add plugin and rule:

{
  "plugins": [
    "no-parameter-e"
  ],

  "rules": {
    "no-parameter-e": 2
  }
}

Keywords

FAQs

Package last updated on 02 Nov 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc