Where I live the garbage disposers are connected to a outlet and a appliance
cord is used. It is a motor so it needs to be able to be disconnected.
Dishwashers are fed with romex to the junction box as common practice.
Best check with your local authorities.
HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.