Double or single quotes? I don’t care!
I like linters. They are fast, they keep your code clean and sometimes they could also work as a pre-unit tests (eg. using of undefined variables). This is all good.
I also like consistency in coding style. Naming conventions are the most important to me. When I define function thisIsNotALoveSong(), this simple statement will be reflected at many places in my code. Next time when I use it, I’ll know the name is camelCase and I’ll waste two seconds less by figuring out what the name is. This is good.
But quotes? Seriously? Single or double quotes? If there’s no syntactic difference, why should I care? When I write: const song = “this is not a love song”, I won’t use this string in my code later. I’ll use song variable.
Everything I need to know for the rest of my life is the name of variable, not how its value was written.
As I said before, I really like consistent coding style. There’s only one thing that I like more: actual coding. So when it comes to point when I spent more time on fixing linter violations that coding, I begin to ask question. Why is this rule there. What happens when I simply disable it. More often I find that most of these rules don’t bring any additional value.
So, don’t tell me stories why single quotes are better than double quotes. Just give me the config for a linter so my editor can warn me when I code. Or the better! Write an auto formatter tool which fixes all these linter errors!
And leave me alone, I want to code.