JavaScript & TypeScript Formatter
Format JavaScript, TypeScript, JSX and TSX with Prettier, with syntax errors pointed out. Code is never run.
About this tool
Format JavaScript, TypeScript, JSX or TSX with Prettier: choose semicolons, quotes, trailing commas, arrow function brackets, indentation and line width.
Syntax errors are pointed out at their line and column, so the formatter doubles as a quick syntax check.
Code is parsed into a syntax tree and printed again. It’s never run, so it’s safe to paste code you don’t trust.