npx prettier --config .prettierrc --write ./**/*.js code example Example: run prettier npx prettier --write path/to/my/file.html