📖 Step 7: Testing & Quality#458 / 498

Formatter

Code Formatter (Prettier)

📖One-line summary

A tool that automatically tidies code style, like indentation, quotes, and line breaks, to set rules.

✨Example

// 포매터

✓ 들여쓰기·따옴표·줄바꿈 같은 코드 모양을 정해진 규칙대로 자동 정리해주는 도구

Tests: 1 passed

⚡Vibe coding prompt examples

>_

Set up Prettier and prettier-plugin-tailwindcss in a Next.js project, plus VS Code settings to format on save.

>_

Configure husky + lint-staged to run Prettier and ESLint only on changed files before each commit.

>_

Explain the difference between a linter and a formatter, and how to resolve conflicts between ESLint and Prettier.

Try these prompts in your AI coding assistant!