Usually, Prettier is configured to format a file automatically e.g. when saving a file. As most developers already use linters in their projects with complex and extensive configurations, this makes it necessary to combine both tools in order to prevent interferences.