Skip to content

'Fix on Save' Only Works with Explicit Rule Options in VS Code (Configuration Issue? Bug?) #3543

Closed Answered by Conaclos
oschade asked this question in Q&A
Discussion options

You must be logged in to vote

Biome has the concept of safe fixes and unsafe fixes. Fix-on-save applies only safe fixes. As you figured out, you can change the safety of a fix. By marking it as safe you allows them to be fixed-on-save.

Is this the intended behavior? Can I set all recommended rules to {"fix": "safe"} globally, or do I need to specify this option for each rule individually?

It is not possible to mark all fixes as safe for now.
Thus, you have to set them for every rule you want to fix-on-save.
This avoids bad surprises and requires you to think carefully each time you want to apply automatically some fixes.

Fixes of some rules could be reworked

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@oschade
Comment options

@Conaclos
Comment options

@oschade
Comment options

@Conaclos
Comment options

Answer selected by oschade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants