Sneak + Interact with the QoL Settings item and choose Light Checker to switch the overlay on or off. It is off by default.
Ground within 7 blocks where a hostile mob could spawn is marked with a particle, so you can light your base properly.