mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -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
598 B
Text
25 lines
598 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"nothing": {
|
|
"args": "fmt",
|
|
"output": "Checked 1 file\n"
|
|
},
|
|
"flag": {
|
|
"args": "fmt --unstable-css --unstable-html",
|
|
"output": "[WILDLINE]badly_formatted.html\nChecked 1 file\n"
|
|
},
|
|
"config_file": {
|
|
"steps": [{
|
|
"args": [
|
|
"eval",
|
|
"Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-css\", \"fmt-html\"]\\n}\\n')"
|
|
],
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"args": "fmt",
|
|
"output": "[WILDLINE]badly_formatted.html\nChecked 2 files\n"
|
|
}]
|
|
}
|
|
}
|
|
}
|