It's weird how quickly we can adopt tooling that change our expectations about development processes even though it is mostly for aesthetics. Python's "black" let's me put code absolutely anywhere without thinking about it. Just save it and let it reformat it.

Javascript linters, on the other hand... As much as a dictator it wants to be with rules, I have two different vue.js projects that seem to be written by two different people. Even *on* the same codebase, style changes.


@raphael prettier is the js equivalent of black and its defaults are mostly sane and usable (once you set the indent width to 4 instead of 2).

i have CI set on all js projects to fail PRs that aren't formatted with prettier. fmt before commit or gtfo

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!