U.S. electric carmaker Tesla Inc won its case against a former employee, who was fired for hacking and transferring company data to third parties, according to court documents filed on Thursday.

Tesla had filed a lawsuit against Martin Tripp, who formerly worked at the Tesla Gigafactory in Nevada, in 2018 claiming that he had admitted to writing software that hacked the carmaker's manufacturing operating system, transferring several gigabytes of its data to third parties and making false claims to the media.

The U.S. district court of Nevada said in its ruling that it will grant Tesla's motions to seal "because compelling reasons support them, and they are unopposed."

The court also denied Tripp's motion for leave to file an additional reply citing it as "unnecessary".

Tesla, Tripp and the law firms leading the case did not immediately respond when Reuters contacted them late on Thursday.