Skip to content

New option to separately control script/template/style format #5293

@zhaojjiang

Description

@zhaojjiang

What problem does this feature solve?

Vue.Volar use vscode built-in language features for html/css formatting, but there are a little conflicts with eslint rules.

Is it possible to set Vue.Volar only take over style part? Then we can safely use eslint-plugin-vue to format script and template, and keep using built-in css formatter for style.

What does the proposed solution look like?

{ "vue.format.takeOver": { "script": false, "template": false, "style": true } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions