Plain squashing commits, while still a valid option in very few cases, will likely lead to gigantic commits that are hard to reason about.
I've seen projects where maintainers clean up poor commits before merging them: rebase/squash/reword only what's appropriate.