Zac Goldsmith’s decision to resign as a Tory MP and contest his Richmond Park seat in a by-election as an independent, in protest at the government’s decision to build a third Heathrow runway, has raised the thorny issue of electoral pacts.