I was recently in my Crawlspace installing a doorbell transformer when I got the idea of potentially reusing an existing junction box.
The only problem is the junction box currently has a lamp holder mount and is being used as lighting for the Crawlspace.
Does anyone see any issues with me having the transformer mounted to the box? (See attachment).
Note: I obviously wouldn't tap into the light power I would run a separate line from a new circuit, just using the junction box for convenience.