QuiiBz / sherif

Opinionated, zero-config linter for JavaScript monorepos
MIT License
915 stars 14 forks source link

bug: fix option doesn't account for `~` or `^` #37

Closed juliusmarminge closed 1 year ago

juliusmarminge commented 1 year ago

When using the --fix when you have multiple versions, sherif seems to ignore if my version is exact or not

This is the result of changing superjson to 2.1.0 then running pnpm dlx sherif@latest --fix and choosing 2.2.0, as you can see, it removed my "preference" to have the version locked:

CleanShot 2023-11-25 at 18 13 59@2x

QuiiBz commented 1 year ago

Thanks, definitely not wanted. I'll take a look tomorrow.

QuiiBz commented 1 year ago

Fix released in 0.6.1, thanks!