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

eslint-plugin-prefer-let

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-prefer-let - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

2

lib/rules/prefer-let.js

@@ -49,3 +49,2 @@ /**

VariableDeclaration(node) {
var scopeType = context.getScope().type;
if (node.kind === 'var') {

@@ -57,3 +56,2 @@ context.report({

} else if (node.kind !== 'let' && !isTopLevelScope(node)) {
console.log(context.getScope().type);
context.report({

@@ -60,0 +58,0 @@ message: '`const` declaration outside top-level scope',

2

package.json
{
"name": "eslint-plugin-prefer-let",
"version": "0.1.0",
"version": "1.0.0",
"description": "Rule to prefer using `let` to bind names to values",

@@ -5,0 +5,0 @@ "keywords": [

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