would it be hard to create a custom linter rule to check that a given function can only be called with nil as first argument?
Dunno, I've never written a linter. But I'm now nerd-sniped and super curious what the use case is 😅
well, it's a function called with-error in lacinia, if you pass a value and an error at the same time you end with kind of broken graphql responses
and the errors get dropped if your server is behind something like apollo or graphql-mesh
but lacinia lets you happily do that
we already fixed the problem, but would be good to make sure someone doesn't do that again in the future by mistake
you can use malli to generate linter rules for that https://github.com/metosin/malli?tab=readme-ov-file#clj-kondo
there is also an example how to use :type-mismatch linter if you don't want to use malli
ah nice