ignoreLocallyUsed
doesn't always work, depends on *where* it is locally used
#299
Labels
ignoreLocallyUsed
doesn't always work, depends on *where* it is locally used
#299
TL;DR:
ignoreLocallyUsed
does not work when the export is used in{ foo: a };
${a};
<div>{a}</div>;
Reproduction: https://stackblitz.com/edit/ts-unused-exports-object-key-yuxcdk?file=src%2Fexports.jsx
Example:
In the code sample above, if
a
is not imported anywhere, even with the--ignoreLocallyUsed
option it will be reported as unused.PS: I'm willing to work on a PR, I'm used to playing with ASTs, but only those like ESLint's and not the
ts
stuff. So I'd love a little guidance for where to look.The text was updated successfully, but these errors were encountered: