Replies: 2 comments 4 replies
-
That's because you configured your IDE to apply lint safe fixes on save. You can disable it. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Closing because we have added this feature on main. It will be available in Biome 1.8. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BiomeJS seems to have no way to turn off "autofix" for a specific rule. It will either get autofixed if it's "safe" when the file is saved or it won't be linted at all.
This can be very frustrating if you are in the middle of coding e.g. a
let
variable, and hit save before actually using the "let" in your function, in this case I'd prefer theuseConst
rule to throw an error/warning, but not change mylet
into aconst
automatically when I save, so I have to go back and change it to alet
again and finish writing my function.This is one example and is obviously different on how people code, but I'm sure this could be useful for other rules as well.
Example of what this could look like in
biome.json
:Beta Was this translation helpful? Give feedback.
All reactions