Scraping through a few hundred municipal codes in Illinois didn’t turn up any trick-or-treat ordinances allowing for jail time. But fines associated with age limits, curfews, masks and more were plentiful.
I'm sure you've jumped to your feet shouting "I'm shocked to hear this! Shocked, I tell you!" However, if you've lived in Illinois for more than 8 minutes--it's not very surprising.