REFACTOR: Import `visit` helper rather than using a global variable (PR #10924)


Don’t think this change should be part of this PR

this should probably be in shared eslint config, but I will do it later as plugins will have to be updated too

This was my mistake - I was used it to debug locally and find all occurrences. It causes test failures and I’m putting it back.

It should be - it’s defined now in test-shims including the visit helper. It doesn’t need to be in the global loader anymore.