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

eslint-plugin-inker

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-inker - npm Package Compare versions

Comparing version 2.8.2 to 2.8.3

13

dist/rules/enforce-import-name.js

@@ -207,6 +207,4 @@ "use strict";

fix(fixer) {
var _a;
const variables = context.getDeclaredVariables(declaration);
const variable = variables.find(item => item.name === value.name);
const references = (_a = variable === null || variable === void 0 ? void 0 : variable.references) !== null && _a !== void 0 ? _a : [];
var _a, _b;
const references = (_b = (_a = context.getDeclaredVariables(prop)[0]) === null || _a === void 0 ? void 0 : _a.references) !== null && _b !== void 0 ? _b : [];
return [

@@ -232,6 +230,5 @@ fixer.replaceText(prop, `${key.name}: ${suggestedName}`),

fix(fixer) {
var _a;
const variables = context.getDeclaredVariables(declaration);
const variable = variables.find(item => item.name === id.name);
const references = (_a = variable === null || variable === void 0 ? void 0 : variable.references) !== null && _a !== void 0 ? _a : [];
var _a, _b;
// eslint-disable-next-line max-len
const references = (_b = (_a = context.getDeclaredVariables(declaration)[0]) === null || _a === void 0 ? void 0 : _a.references) !== null && _b !== void 0 ? _b : [];
return [

@@ -238,0 +235,0 @@ id,

{
"name": "eslint-plugin-inker",
"version": "2.8.2",
"version": "2.8.3",
"description": "",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -261,5 +261,3 @@ import {

fix(fixer) {
const variables = context.getDeclaredVariables(declaration)
const variable = variables.find(item => item.name === value.name)
const references = variable?.references ?? []
const references = context.getDeclaredVariables(prop)[0]?.references ?? []
return [

@@ -286,5 +284,4 @@ fixer.replaceText(prop, `${key.name}: ${suggestedName}`),

fix(fixer) {
const variables = context.getDeclaredVariables(declaration)
const variable = variables.find(item => item.name === id.name)
const references = variable?.references ?? []
// eslint-disable-next-line max-len
const references = context.getDeclaredVariables(declaration)[0]?.references ?? []
return [

@@ -291,0 +288,0 @@ id,

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