Ulta Beauty customers who claim the cosmetics retailer resold used makeup as if it were new will get to have their day in court.

A federal court judge in Chicago ruled Tuesday that a lawsuit seeking class-action status on behalf of consumers in 18 states, including Illinois, can proceed, according to court filings.

Allegations that Bolingbrook-based Ulta put returned cosmetics back on shelves to be sold at full price arose in January 2018, when a person claiming to be a former employee described repackaging products in a Twitter post that quickly went viral.

A California woman filed the lawsuit, which seeks unspecified damages, later that month, and 21 more Ulta customers have since joined, including two from Illinois.

In March, Ulta CEO Mary Dillon denied allegations the company sold used, damaged or expired products during a call discussing the company’s financial results.

Dillon said Ulta was reinforcing appropriate procedures for handling returns and had seen no indication that the publicity around the claims had hurt the company’s brand. That remains the case, Twigg May said.

Sales at stores open at least 14 months rose 7.8 percent during the three months ending Nov. 3, down from a 10.3 percent increase during the same period the year before, Ulta said in December.