| Crates.io | dprint-vue-plugin |
| lib.rs | dprint-vue-plugin |
| version | 0.1.0 |
| created_at | 2024-07-02 13:06:51.261852+00 |
| updated_at | 2024-07-02 13:06:51.261852+00 |
| description | a fork of dprint-plugin-vue |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1289575 |
| size | 17,923 |
Format Vue SFC.
This plugin format root-level blocks through dprint, meaning you will need to
install plugins for the languages contained in your Vue SFCs.
Unless a lang attribute is present:
| Block | Default |
|---|---|
script |
js |
template |
html |
style |
css |
Install and setup dprint, then:
dprint config add malobre/vue
.vue file extensions are matched in an includes pattern:
{
// -- snip --
"includes": [
"**/*.vue"
]
}
vue configuration property if desired:
{
// -- snip --
"vue": {
// vue config goes here
}
}
| Key | Default | Description |
|---|---|---|
indentTemplate |
true |
Indent the content of the <template> tag |
indentWidth |
2 |
Width of the indentation |
useTabs |
false |
Use tabs for indentation |
Run
cargo build --release --target=wasm32-unknown-unknown