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

eslint-plugin-ts-exports

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ts-exports - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

8

dist/rules/unused-exports.js

@@ -13,3 +13,3 @@ "use strict";

const UnusedExportsMessage = "export {{name}} is unused";
const isMacOS = process.platform === "darwin";
const normalizePath = (filePath) => process.platform === "darwin" ? filePath.toLowerCase() : filePath;
let analysis = null;

@@ -71,5 +71,3 @@ exports.default = createRule({

const nonNormalizedFile = path_1.default.join(process.cwd(), result.file);
const file = isMacOS
? nonNormalizedFile.toLowerCase()
: nonNormalizedFile;
const file = normalizePath(nonNormalizedFile);
if (analysis !== null && analysis[file] === undefined) {

@@ -90,3 +88,3 @@ analysis[file] = [result.symbol];

}
const errors = analysis[fileName];
const errors = analysis[normalizePath(fileName)];
if (errors) {

@@ -93,0 +91,0 @@ errors.forEach(({ name, start, end }) => {

{
"name": "eslint-plugin-ts-exports",
"version": "1.2.2",
"version": "1.2.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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