News for hackers. Stuff that matters.

11010010001101

Re:Rome: A Linter for JavaScript and TypeScript on Sunday August 09, 2020 @06:59AM (#24098740)
> Over time the auto-formatter did less because of the habits I was picking up.

Indeed, making you more robot for "how things should be done".

Just one example: I like my code to be readable, and one of the things I apply for that is the use of white space. Between my functions/methods I have at least 3 lines of white space. It's a lie that this is not "how things should be done", and there is no way to tell prettier to accept that because it is meant to be opinionated. These tools have a place for some teams and junior devs, but I try to stay away from the ugly code it spits out.

Re:Rome: A Linter for JavaScript and TypeScript on Sunday August 09, 2020 @04:05AM (#24098127)
> standards for how things should be done

I cannot deal with these kind of statements and that's probably why I never use linters for my own projects. And yes, my code is good enough, a linter won't make it any better. It just blocks me time and time again and litters the codebase with: // eslint-disable-next-line

I never really understood why these tools are so popular and who really needs them. In the end it's all about the result of the code you've written, how easy it can be maintained and how good it works. No linter can help me with that.