WSWhat Scene?

Learn · Developer tools

What is a linter and a formatter?

A linter automatically checks code for likely mistakes, risky patterns, and style issues as you write. A formatter automatically arranges code consistently (spacing, indentation, quotes). Together they catch small errors early and keep a codebase uniform, so it reads as if one person wrote it.

Linters like ESLint flag problems a human reviewer might miss and enforce agreed rules. Formatters like Prettier remove pointless arguments about style by applying one consistent format on save. Both run automatically, often in the editor and in CI.

The value grows with team size. Consistent, lint-clean code is easier to read, review, and maintain, and catching issues before they reach review saves everyone time. They're low-effort to set up and a standard part of a professional workflow.

Updated July 2026

Related

Want this built, not just explained?