🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-no-lenght

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-lenght

eslint rule to prevent mistyping length

latest
Source
npmnpm
Version
1.0.2-0
Version published
Maintainers
1
Created
Source

Ensures length is properly typed (no-lenght)

This rule was created to prevent mistyping the length property.

Rule Details

Examples of incorrect code for this rule:


someObj.lenght

Examples of correct code for this rule:


someObj.length

How add rule

.eslintrc example

{
  "rules": {
    "no-lenght/no-lenght": "error" // error, warn
  },
  "plugins": [
    "no-lenght"
  ]
}

FAQs

Package last updated on 21 Feb 2017

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