The longer that discharge hose, the greater chance for reversal of flow given the diameter of the piping.
I've always extended those in special circumstances by using 1/2" copper tubing and heater hose found at auto supply houses due to the temperature of the wastewater when cycling.
I've seen dishwasher 12' away from the sink. Certainly not code but you need to ask your local plumbing inspector's office. Have no clue where you live cause your location is a phrase, not an actual geographical spot.
Why do I sound like hj all a sudden