| ▲ | Grom_PE 3 hours ago | |||||||||||||||||||||||||||||||||||||||||||
I thought oxfmt would just be a faster drop-in replacement for "biome format"... It wasn't. Let this be a warning: running oxfmt without any arguments recursively scans directory tree from the current directory for all *.js and *.ts files and silently reformats them. Thanks to that, I got a few of my Allman-formatted JavaScript files I care about messed up with no option to format them back from K&R style. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | tomashubelbauer 2 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
> running oxfmt without any arguments recursively scans directory tree from the current directory for all .js and .ts files and silently reformats them I've got to say this is what I would have expected and wanted to happen. I'd say it is wise to not run tools designed to edit files on files you don't have a backup for (like Git) without doing a dry-run or a small scope experiment first. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | nindalf 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
> with no option to format them back Try git reset --hard, that should work. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | jagged-chisel 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
These files are under version control, right? Or backed up. Right? | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | Sammi 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
This is user error. oxfmt did what you asked it to do. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | monster_truck 27 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
You couldn't waterboard this outta me | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ramon156 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
Do you not use a VCS? | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | phplovesong 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
Git undo? | ||||||||||||||||||||||||||||||||||||||||||||