Enantioselective synthesis of spiro cyclopentane-1,3'-indoles and 2,3,4,9-tetrahydro-1H-carbazoles by iridium-catalyzed allylic dearomatization and stereospecific migration.