Prettier

noun

say it: “PRIT-ee-er” /ˈprɪtiər/

A code formatter: a tool that rewrites your code's spacing, quotes and line breaks into one consistent style without changing what it does.

What is Prettier in JavaScript?

Prettier — A code formatter: a tool that rewrites how your code is laid out (spacing, indentation, quotes and line breaks) in one consistent style, without changing what it does. Teams run it on save or from an npm script, so nobody argues about style.

In a sentence

  • “Since the team started using Prettier, nobody leaves comments about tabs versus spaces.”
  • “I saved the file and Prettier lined up every bracket and turned all my quotes into the same kind.”

Level: Apprentice · More JavaScript terms at this level

Updated