Dishwashers are not usually a good sources of greywater because the detergents for dishwashers are typically high in salt, which is harmful to plants and soils. If you are able to find a dishwasher detergent that does not have salt or boron in it, then the greywater can be reused. If you don’t have a sewer/septic option, and can’t find “plant friendly” detergents, direct greywater to a dedicated portion of the yard and plant with salt tolerant plants. If your state doesn’t consider kitchen water “greywater,” than a system using dishwater water will not be code compliant.