freecoding.school100% FREE · NO SIGNUP
API ArcadeISSUE #19 of 23

linting · eslint · prettier

ApiaVSLegacy Larry
Apia saysLinters (ESLint) catch problems; formatters (Prettier) enforce consistent style automatically.

ESLint statically analyzes code for bugs and bad patterns (unused vars, accidental globals, risky equality) using configurable rules. Prettier reformats code to one consistent style so nobody argues about spaces. Run them on save and in CI; together they keep a codebase clean and reviews focused on logic, not style.

Power-ups you unlock

Legacy Larry attacks — common mistakes

Boss battleName two issues ESLint catches that a formatter alone would not.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>// ESLint flags: unused var, == usage, no-undef
let x = 1;          // 'x' is never used
if (a == b) {}      // prefer ===
// Prettier just reformats spacing/quotes/semicolons</pre></body></html>
▶ Open the interactive comic issue
‹ Typescript · Adding Types To JsTesting · Jest · Vitest · Playwright ›