eslint-plugin-ts-exports
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -39,8 +39,11 @@ "use strict"; | ||
file.forEach(({ exportName, location }) => { | ||
const nodeOrLoc = location | ||
? { loc: { line: location.line, column: location.character } } | ||
: { node }; | ||
context.report(Object.assign(Object.assign({ messageId: "UnusedExportsMessage" }, nodeOrLoc), { data: { | ||
name: exportName, | ||
} })); | ||
if (location) { | ||
context.report({ | ||
messageId: "UnusedExportsMessage", | ||
loc: { line: location.line, column: location.character }, | ||
data: { | ||
name: exportName, | ||
}, | ||
}); | ||
} | ||
}); | ||
@@ -47,0 +50,0 @@ }); |
{ | ||
"name": "eslint-plugin-ts-exports", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
4537
71