Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(unstable/fmt): move yaml formatting behind unstable flag #24848

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Aug 2, 2024

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:

{
  "unstable": ["fmt-yaml"]
}

cc @g-plane - It would be good to do the same for other languages.

Part of #12217

"tests": {
"nothing": {
"args": "fmt",
"output": "Checked 1 file\n"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still loading the yaml file. I didn't think it was worth the effort to make that conditional as we'll be enabling this by default soon.

@dsherret dsherret added this to the 1.46 milestone Aug 2, 2024
@dsherret dsherret enabled auto-merge (squash) August 2, 2024 12:56
@dsherret dsherret merged commit 0da8120 into denoland:main Aug 2, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants