refactor(typing): make the use of estree guards uniform across the project (#677)