Would there be interest for adding `sherif` to the tanstack/router monorepo?
It's a high quality, fast tool for ensuring consistency across all the dependencies of a monorepo.
https://github.com/QuiiBz/sherif
It's as simple as
pnpx sherif
. No config, no install, doesn't even need node_modules.
It has an autofix mode (--fix
) perfect for the autofix.yml
github action. And a non-autofix mode that could be added to test:ci
and test:pr
(though I don't know nx
so I'm not sure how to go about this).
We've been using this tool at work for about 1 year, and it occasionally catches a few nice things. We've never seen it catch something that it wasn't a good idea to fix.
I ran it quickly just to see, and got some reports like:
PS: used the react
tag, but just because there wasn't a more appropriate one3 Replies
conscious-sapphire•3mo ago
we do use it for query i think
cc @TkDodo 🔮 would you recommend for router?
exotic-emeraldOP•3mo ago
off topic minor nitpick: i see in the github actions there is a bunch of
if: ${{ always() }}
and I think if: always()
also works.afraid-scarlet•3mo ago
yeah it's good except that we sometimes want different versions of dependencies, e.g. when we test against multiple versions of nextJs in our e2e test suite
so we needed to define exceptions