Skip to content
Latchkey

What Is a .prettierrc file?

a .prettierrc file explained, including what it does and how it matters in CI/CD.

A .prettierrc file configures Prettier code formatting options.

What it is

It sets style preferences (print width, semicolons, quotes). Prettier is opinionated, so the config is small.

Why it matters in CI/CD

CI runs prettier --check to fail the build if any file is not formatted. This keeps formatting consistent without manual review.

Key takeaways

  • .prettierrc configures Prettier.
  • It sets formatting style.
  • CI uses --check to enforce it.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →