You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no lint errors when using types exported from a .ts file instead of an .astro file. You can check this by uncommenting in the reproduce link.
The text was updated successfully, but these errors were encountered:
nix6839
changed the title
Error with @typescript-eslint/no-unsafe-assignment
Types imported in an Astro file are not working correctly
Apr 3, 2024
nix6839
changed the title
Types imported in an Astro file are not working correctly
Types imported from an Astro file are not working correctly
Apr 3, 2024
nix6839
changed the title
Types imported from an Astro file are not working correctly
Types imported from Astro file are not working correctly
Apr 3, 2024
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.57.0
What version of
eslint-plugin-astro
are you using?0.33.1
What did you do?
Configuration
What did you expect to happen?
pageName
has a string type, so it should not throw any lint errors related to type any.What actually happened?
Link to Minimal Reproducible Example
https://eslint-online-playground.netlify.app/#eNq1UsFu2zAM/RVBlwBDLTdLgw5eN2zYsuO2e92DITOp0lgSJLXoEPjfR4lW6rRu0R56SWCS7/G9R+25d7JcOWfcD9NZo0EH0fjgDK94URS1Vlh1gYV/Ftiere7jF7R/nbGe9WztTMdmosx1ws4+17os2RuhwUccbtQB3LqRwGh0j8Vgmw38bjqojnkuZ7kxu0JwH/HSaB9wYe7gri/se9QlbMTgXHJW64vr+dd9HusvSvysNT+hTI4c5TQgVbMl0tf4x95eYwNZld6Q5kSNe4NH7Wu1EVtvNK5MkJrDfQDd+ppXrOZJTpknfRl5JA4losfag0eW99GMqwT4HSKcFHIbF3Wmvd2BoH0eQ0c4Y4P6il3GL4YWCFY5kKbrsAdtzU9y0+5uN0pX36JcL52yoaD5cjRfxG4hr0HeTIEpoyP+OHGV5mzjPLg/Nih8JxVpxKozW5AhJiwO6aY7DPR9+jV34Jxq4cHOgGdsrXZU5h/ozdScFib6tPRwv8FSQeWDgefEHTNMRPOEJ8Xuml+oaRXz98SH4p5qI2f4nzLKx7WNvMHDj55iDLgFGwPVUkF6j4PAwRa90DOxFPOPFDlxR9zdz+egL/iJdOdIdzq68cR4TjNdfxpFI9T7JJbnE80BX4ysnIrFQsxHkw+7aWApzsRisErJ9f8BjLHMyA==
Additional comments
There are no lint errors when using types exported from a
.ts
file instead of an.astro
file. You can check this by uncommenting in the reproduce link.The text was updated successfully, but these errors were encountered: