A state court hasn’t the authority.
“The Supreme Court’s initial unanimous decision in the 2000 election dispute vacated the Florida Supreme Court’s first decision for failing to take into account this doctrine prohibiting state constitutions from constricting state legislative directions about the appointment of presidential electors. Bush v. Palm Beach County Canvassing Board (2000).”
http://www.heritage.org/constitution/#!/articles/2/essays/79/presidential-electors
A federal court would be hard-pressed to do so considering precedent. I can’t imagine how they would, but I’m not a lawyer.
(And I did find the one time a state didn’t appoint electors- NY in 1789.)
.
Think Carter, Clinton, and Obama judges.
.