Socket
Socket
Sign inDemoInstall

eslint-plugin-no-let-any

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-no-let-any

A rule that prevents declaring variables without a type.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
39.1 kB
Created
Weekly downloads
 

Readme

Source

eslint-plugin-no-let-any

What is this?

This is a rule that disallows declaring variables with let that do not have a type. For example:

// Bad
let foo;

// Good
let foo: string;

This is useful because the noImplicitAny TypeScript compiler flag does not always catch this pattern. Declaring variables without the type can make code harder to read, especially if the variables are instantiated and declared far away from each other.


How do I use it?

  • npm install --save-dev eslint-plugin-no-let-any
  • Add "plugin:no-let-any/recommended" to the extends section of your .eslintrc.js file.

What rules does this plugin provide?

It only provides one rule: "no-let-any/no-let-any"


Keywords

FAQs

Last updated on 28 Feb 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc