|
|
|
|
|
by eddd-ddde
775 days ago
|
|
> the tyranny of linters This is a take I don't think I've seen before. Is someone actually mad prettier is changing their single quotes to double quotes? Are they mad some line is breaking at some word? Certainly I've never been. I use linters / formatters even when I'm working solo because the mere concept of having to think where to break lines is meaningless disruption from the actual goals I have. If you _really_ want to break a line somewhere, just add a comment in between and your linter will comply. |
|
Before back-tick strings in JS, it was useful to employ both single/double quotes for strings -- you'd use one most of the time, and then if you needed to embed a bunch of that quotation mark in a string literal, you'd switch to the other one.
A formatter with naive "single quotes only" rule would obliterate the last one to: unless you remember, before you hit save, to add a directive like: I still use linters and formatters every day, and on balance I think they're good to have, but it's ridiculous to pretend they don't have downsides, or that there isn't room for the occasional dash of human intervention in the automation; hence, the linters which have // linter pwease directives.