Embedded language support (Vue, Svelte, Astro ...) #1691
Hebilicious
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
There's a lot of existing discussions that are all around the same topic. It would be great to centralise the discussion somewhere.
Adding support for these would increase the number of users/contributors, as these frameworks have a big combined user base.
oxlint recently added support for these to lint the content of the script tag. I think (as someone who knows nothing about Rust and the Biome codebase) that this can be done "quickly", ie just extracting the JS/TS parts as mentioned by @anonrig
I would assume that these should share some common code, but there would be a need for a dedicated plugin for each of them eventually ?
Possibly relevant for type related rules : https://volarjs.dev/core-concepts/embedded-languages/, can create TS language servers that works with embedded languages (This is what Vue and Astro use for their vscode extensions under the hood).
As someone who uses both Vue and Svelte, I would be happy to contribute with something for these.
Existing discussions references :
Beta Was this translation helpful? Give feedback.
All reactions