Prettier
prettier.io
1
Leaving SiteNav
External Link Disclaimer
You are about to visit prettier.io. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Prettier is an opinionated code formatter created by James Long in 2017 that automatically reformats source code to ensure consistent style across entire codebases, supporting JavaScript, TypeScript, JSX, Vue, Angular, CSS, SCSS, Less, HTML, JSON, GraphQL, Markdown, YAML, and other languages, with over fifty million weekly npm downloads and adoption by major companies including Facebook, Microsoft, and Spotify. The opinionated approach eliminates style debates by enforcing a single consistent formatting standard with minimal configuration options, reformatting code based on AST analysis rather than regex patterns, ensuring correct and reliable transformations that respect language semantics, with line width wrapping, consistent indentation, trailing commas, and semicolon rules applied uniformly. The editor integration provides format-on-save through plugins for VS Code, WebStorm, Vim, Emacs, Sublime Text, and Atom, enabling developers to write code in any style and have it automatically formatted upon saving. The CLI enables formatting entire projects, with file watching for continuous formatting, and integration with lint-staged for pre-commit hooks that format only changed files, ensuring consistent formatting without disrupting the development workflow. The plugin architecture extends formatting to new languages and frameworks, with the options limited intentionally to prevent configuration fatigue. Designed for JavaScript developers, frontend teams, and open-source maintainers.
Statistics
1
Views
0
Clicks
0
Like
0
Dislike