📖 Step 7: Testing & Quality#206 / 291

Lint / Linting

Lint / Linting

📖One-line summary

Tools that automatically check code style and catch likely errors.

Example

Auto-check code style and errors

⚠ 2:5 no-unused-vars: 'temp' is defined but never used

✕ 5:1 no-console: Unexpected console statement

⚠ 8:10 prefer-const: 'x' is never reassigned

1 error, 2 warnings

Vibe coding prompt examples

>_

Set up ESLint and Prettier in the project. Include TypeScript and React rules, and configure VS Code to auto-format on save.

>_

Add custom ESLint rules. Enforce no console.log, auto-remove unused imports, and apply sort rules.

Try these prompts in your AI coding assistant!