yarn prettier './src' --write code example Example: run prettier npx prettier --write path/to/my/file.html