Verdict: Yes. Yes. Prettier is already part of the template, and both --check and --write run fine in the sandbox.
$bunx prettier --version
3.9.6
$bunx prettier --check "src/**/*.{ts,tsx,css}"
Checking formatting... [warn] src/routes/index.tsx [warn] Code style issues found in the above file.
$bunx prettier --write "src/**/*.{ts,tsx,css}"
src/routes/index.tsx 6ms (all other files unchanged)
$bunx prettier --check "src/**/*.{ts,tsx,css}"
All matched files use Prettier code style! exit=0
$bun run format
prettier --write . — completed, no files left unformatted
- prettier ^3.7.3 ships as a devDependency and package.json already defines a "format" script.
- eslint-config-prettier and eslint-plugin-prettier are installed too, so lint and formatting do not fight.
- The check found one real violation and --write fixed it, so the loop is genuinely usable, not just installed.
- Adding new tools works the same way: bun add -d <pkg>, then bunx <pkg>.