Density and balance.
The overeater might eat too many empty foods, or even harmful foods. The person who eats too little obviously risks not getting sufficient nutrition. In both cases, foods for both meals and snacks need to be nutrient-dense. These foods also need to be balanced between quality sources of carbohydrates, protein, fats and fiber.
Avoid empty foods, and be careful when turning to processed foods.