eslint-plugin-ts-exports
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6772
128