Don't eat too much food. Limit processed foods. Eat lots of fruit and vegetables. Eat a large variety of foods. Be active.
These rudimentary guidelines are clearly difficult for a lot of people to follow, but I think it's pretty easy to avoid negative diet effects by just doing what most people intuitively know as the right thing, even if we consume some of all types of food. It seems to me this is more about self-control and effort level than any scientific knowledge, at this point.