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.3 to 2.8.4

27

dist/rules/enforce-import-name.js

@@ -203,15 +203,2 @@ "use strict";

message: `Local name should be "${suggestedName}"`,
suggest: [
{
desc: `Rename to '${suggestedName}'`,
fix(fixer) {
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 [
fixer.replaceText(prop, `${key.name}: ${suggestedName}`),
...references.map(ref => fixer.replaceText(ref.identifier, suggestedName)),
];
},
},
],
};

@@ -226,16 +213,2 @@ });

message: `Local name should be "${suggestedName}"`,
suggest: [
{
desc: `Rename to '${suggestedName}'`,
fix(fixer) {
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 [
id,
...references.map(ref => ref.identifier),
].map(identifier => fixer.replaceText(identifier, suggestedName));
},
},
],
},

@@ -242,0 +215,0 @@ ];

2

package.json
{
"name": "eslint-plugin-inker",
"version": "2.8.3",
"version": "2.8.4",
"description": "",

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

@@ -257,14 +257,2 @@ import {

message: `Local name should be "${suggestedName}"`,
suggest: [
{
desc: `Rename to '${suggestedName}'`,
fix(fixer) {
const references = context.getDeclaredVariables(prop)[0]?.references ?? []
return [
fixer.replaceText(prop, `${key.name}: ${suggestedName}`),
...references.map(ref => fixer.replaceText(ref.identifier, suggestedName)),
]
},
},
],
}

@@ -280,15 +268,2 @@ })

message: `Local name should be "${suggestedName}"`,
suggest: [
{
desc: `Rename to '${suggestedName}'`,
fix(fixer) {
// eslint-disable-next-line max-len
const references = context.getDeclaredVariables(declaration)[0]?.references ?? []
return [
id,
...references.map(ref => ref.identifier),
].map(identifier => fixer.replaceText(identifier, suggestedName))
},
},
],
},

@@ -295,0 +270,0 @@ ]

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