According to section 240 24 d of the national electrical code nec which says overcurrent devices shall not be located in the vicinity of easily ignitable material such as in clothes closets you are not permitted to do this.
Electrical panel box in closet.
Rooms circuit breaker boxes may not be installed in bathrooms powder rooms clothes closets or in any room where there is insufficient space for a worker to access and work on the box.
Nema 3r if exposed to weather.
This section does not differentiate between one type of clothes closet or another.
Panels are located in utility closets and approved all the time with proper clearances.
The short safest and most efficient answer to this question is yes.
Rmeier2 robert meier april 16 2018 8 58pm 5.
Nec 240 24d overcurrent devices shall not be located in the vicinity of easily ignitable materials such as a clothes closet.
The wording is vague as it does not absolutely prohibit a panel in a closet more like just around easily ignited materials.
If clearance was kept i don t see a major issue as pictured.
These codes cover the installation and placement of residential circuit breaker boxes including main service panels and subpanels.
However there are a few issues to consider a bout the language of this code and how it applies to your specific situation.
According to the national code with relation to electrical panels in closets.