After installing LineageOS you should restore the stock recovery then lock the bootloader. It will do a factory reset. If you want to update down the road or flash another ZIP, run the flash_image binary as root with the proper parameters to install a temporary recovery, install any update or ZIP, then use the flash_image binary again to install the stock recovery.