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

chore: deprecate --apply and --apply-unsafe options #2918

Merged

Conversation

unvalley
Copy link
Member

@unvalley unvalley commented May 19, 2024

Summary

This PR deprecates --apply and --apply-unsafe options used in biome check and biome lint commands.
The help messages are updated, and when users use those options, biome cli prints deprecation messages.

Follow up for #2898

Test Plan

I've updated the snapshot tests for biome <lint|check> --<apply|apply-unsafe>.

There are some changes in test/cases/**. They emit some diagnostics in console and it conflicted with new deprecation diagnostics (message).
So I've changed --apply and --apply-unsafe to --write and --write --unsafe to resolve the diagnostics conflicts.

@unvalley unvalley marked this pull request as ready for review May 20, 2024 18:26
@unvalley unvalley requested a review from ematipico May 21, 2024 05:09
@unvalley unvalley merged commit 5077f88 into biomejs:main May 21, 2024
10 checks passed
@unvalley unvalley deleted the chore-deprecate-apply-and-apply-unsafe branch May 21, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-CLI Area: CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants