Skip to content

🐛 Unable to manually apply Vue / HTML-ish syntax on .html files #8415

@thomassth

Description

@thomassth

Environment information

(using biome playground)

What happened?

Playground

https://biomejs.dev/playground/?files.main.vue=PABzAGMAcgBpAHAAdAAgAHMAZQB0AHUAcAA%2BAAoAIAAgAGkAbQBwAG8AcgB0ACAAewAgAHIAZQBmACAAfQAgAGYAcgBvAG0AIAAnAHYAdQBlACcACgAgACAACgAgACAAYwBvAG4AcwB0ACAAbgB1AG0AYgBlAHIAIAA9ACAAcgBlAGYAKAAyACkACgA8AC8AcwBjAHIAaQBwAHQAPgAKADwAdABlAG0AcABsAGEAdABlACAAcwByAGMAPQAiAC4ALwB0AGUAbQBwAGwAYQB0AGUALgBoAHQAbQBsACIAPgA8AC8AdABlAG0AcABsAGEAdABlAD4ACgA8AHMAdAB5AGwAZQA%2BADwALwBzAHQAeQBsAGUAPgAKAA%3D%3D&files.template.html=PABkAGkAdgA%2BAAoACQA8AHQAZQBtAHAAbABhAHQAZQAgAHYALQBpAGYAPQAiAG4AdQBtAGIAZQByACAAJQAgADIAIAA9AD0APQAgADAAIgA%2BAGUAdgBlAG4APAAvAHQAZQBtAHAAbABhAHQAZQA%2BAAoACQA8AHQAZQBtAHAAbABhAHQAZQAgAHYALQBlAGwAcwBlAD4AbwBkAGQAPAAvAHQAZQBtAHAAbABhAHQAZQA%2BAAoAPAAvAGQAaQB2AD4A

Expected result

Right now it's showing Vue syntax isn't enabled. Is this supposed to be a .vue file? to Vue projects using the src imports setup

It is an officially supported setup that allows a single .vue file to break into its respective files

I should be able to manually allow Biome to parse my HTML files (or files within an inclusion list) with Vue syntax

Same situation may also happen to other HTML-ish formats

It might also has the added benefit of easier debugging?

Reference
https://vuejs.org/api/sfc-spec.html#src-imports

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-HTMLLanguage: HTML and super languagesS-EnhancementStatus: Improve an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions