mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
0da81205d5
This moves YAML formatting behind an unstable flag for Deno 1.46. This will make it opt-in to start and then we can remove the flag to make it on by default in version of Deno after that. This can be specified by doing `deno fmt --unstable-yaml` or by specifying the following in a deno.json file: ```json { "unstable": ["fmt-yaml"] } ```
25 lines
No EOL
567 B
Text
25 lines
No EOL
567 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"nothing": {
|
|
"args": "fmt",
|
|
"output": "Checked 1 file\n"
|
|
},
|
|
"flag": {
|
|
"args": "fmt --unstable-yaml",
|
|
"output": "[WILDLINE]badly_formatted.yml\nChecked 1 file\n"
|
|
},
|
|
"config_file": {
|
|
"steps": [{
|
|
"args": [
|
|
"eval",
|
|
"Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-yaml\"]\\n}\\n')"
|
|
],
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"args": "fmt",
|
|
"output": "[WILDLINE]badly_formatted.yml\nChecked 2 files\n"
|
|
}]
|
|
}
|
|
}
|
|
} |