DEV Community

Discussion on: Why I Hate ESLint (and How I Learned to Love It)

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

I do understand that warnings will frequently be ignored. But my point is that there are many things that "linter Nazis" have decided MUST LOOK EXACTLY AND PERFECTLY THE SAME throughout the entire code base. They use this same logic to make it sound like it's so hard to read code that has the opening curly brace on the conditional line - and then read other code that has the opening curly brace on a new line.

And I'm serious. These people make it sound like it's just so got-dang impossible to grok the code if they're affronted by different opening-curly-brace styles. They act like they couldn't even code before the use of linters, cuz there was just no way that they could ever be expected to read code that wasn't lock-step to "standards".

My whole thing with the warn vs error idea is that some devs really need to just get over themselves. If it's ruining your ability to read the code cuz my opening-curly-brace style is different than yours, and you can't possibly work in the codebase until all the opening-curly-braces conform to the same rule - then you should really consider a career in auditing.