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

@arthurgeron/eslint-plugin-react-usememo

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arthurgeron/eslint-plugin-react-usememo - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

dist/index.js

@@ -144,4 +144,8 @@ 'use strict';

if (reactImportData.importDeclaration) {
reactImportData.importDeclaration.specifiers.push(specifier);
return fixer.insertTextAfter(reactImportData.importDeclaration.specifiers[reactImportData.importDeclaration.specifiers.length - 2], ", ".concat(kind));
// Do not add specifier if exists.
var specifiers = reactImportData.importDeclaration.specifiers;
if (!specifiers.find(function (x) { return x.local.name === kind; })) {
specifiers.push(specifier);
return fixer.insertTextAfter(specifiers[specifiers.length - 2], ", ".concat(kind));
}
}

@@ -148,0 +152,0 @@ }

{
"name": "@arthurgeron/eslint-plugin-react-usememo",
"version": "2.1.0",
"version": "2.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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