mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
3a3315cc7f
This commit adds capability to format HTML, Svelte, Vue, Astro and Angular files. "--unstable-html" is required to format HTML files, and "--unstable-component" flag is needed to format other formats. These can also be specified in the config file. Close #25015
25 lines
612 B
Text
25 lines
612 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"nothing": {
|
|
"args": "fmt",
|
|
"output": "Checked 1 file\n"
|
|
},
|
|
"flag": {
|
|
"args": "fmt --unstable-css --unstable-component",
|
|
"output": "[WILDLINE]badly_formatted.svelte\nChecked 1 file\n"
|
|
},
|
|
"config_file": {
|
|
"steps": [{
|
|
"args": [
|
|
"eval",
|
|
"Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-css\", \"fmt-component\"]\\n}\\n')"
|
|
],
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"args": "fmt",
|
|
"output": "[WILDLINE]badly_formatted.svelte\nChecked 2 files\n"
|
|
}]
|
|
}
|
|
}
|
|
}
|