🐛 BUG: astro check
reports false positive unused variable when variable is used in Astro.redirect
#980
Labels
needs triage
Issue needs to be triaged
Describe the Bug
astro check
reports false positive when using import inreturn Astro.redirect( --> here <-- )
.For example here, it will report that
MyObject
is unused:This works as expected though (
astro check
recognizesMyObject
as being used):A real-world example can be found in https://github.com/GenSpectrum/dashboards/blob/09e505a0bd82a87cf2d460dd3d70fff063eb1b0d/website/src/pages/covid/index.astro
Steps to Reproduce
npm create astro@latest
,npx astro check
to install@astrojs/check
- yields ATM:src/pages/index.astro
:src/object.ts
:npx astro check
:Link to Minimal Reproducible Example
GenSpectrum/dashboards@c209e44
The text was updated successfully, but these errors were encountered: