Can I hard wire two LED shop lights to one power line?
Yes, that's fine.  They don't need to be the same.  I mean, one could  be a humdifier unit even.  Just bring the wire in a knockout on the side, and use a listed cable clamp of the type that screws into a knockout.  Don't drill a hole in the box cover, don't hack or homebrew it. 

If there are also receptacles on this circuit, make sure the hardwired loads on the circuit don't exceed 50% of circuit capacity.