PodRocket cover image

React, TypeScript, and ESLint with Josh Goldberg

PodRocket

00:00

Formatters and Linters: The Two Tools That Should Be Separated

A linter is most often implemented in today's world as a tool that runs a set of individual discrete rules. A formatter, in my belief, is a tool that just formats code. There are so many different concerns like tabs for spaces, indents level and configuring the maximum length of a line. You can use a linter for that but there are these edge cases that the linter will never be very good at fixing. In TypeScript BSLintland, we've completely given up on accounting for these edge cases in many of our formatting rules because it's just this never ending anger from people.

Play episode from 04:27
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app