#Prefer non-relative imports

3 messages · Page 1 of 1 (latest)

safe dagger
#

Hi everyone! I’ve been trying for a while to configure my editor to prefer non-relative imports in Astro files. In VS Code it just requires enabling a setting, and the same goes for Zed. But in Astro files, this configuration doesn’t seem to have any effect. Does anyone know a way to make this work?

formal light
#

You can use biome to make sure the import format you want is used

safe dagger
#

Thanks @formal light! I've seen Biome's docs — it looks good, but I’m not considering it for my current project. I’ll try it in the next one. Currently, I use ESLint with Prettier. I tried to configure the ESLint import plugin for Astro files, but it didn’t work — only for TSX and TS files.