All jobs / Frontend / web developer / Tooling

Frontend / web developer interview question · 0–1 years

Your new team uses both ESLint and Prettier. What does each one do, and why have both?

The strongest answer

Prettier formats — spacing, quotes, line breaks — with no debate; ESLint finds likely bugs and enforces code rules. Run both on save and in CI, with ESLint’s formatting rules off so they don’t fight

Why it works

Right — a formatter and a linter answer different questions: how it looks versus whether it is probably wrong.

What a good answer covers

Answers that fall short

Who gets asked this

More Tooling questions