I mean first I’d start with the reason you don’t like it. Is it because it’s unfamiliar? If so, fix that. Or Is it because it’s actually not a super essential rule?
The main rules I tend to disable are things like the strict arrow function rules (they are very very opinionated and are not essential for using arrow functions at all), comma dangle (airbnb requires dangling commas for better git diffing but most people I know hate this rule, it’s not essential), don’t require file extensions for import, etc.
It takes some expertise to fairly judge what is essential and what is too much opinion. If you lack this expertise, there’s an easy fix for that, start learnin! :)
Another thought: I generally start a discussion when we are looking at changing our linting rules so anyone can voice their opinions. I will push back any feedback like “that looks weird”, “I’ve never heard of that so I don’t want it”, because those are not valid arguments for making an informed decision. Everyone is entitled to an opinion, but nobody is entitled to force others to be affected by this opinion, they have to back it up with a convincing argument.
I'm all about code formatting and good-practice (e.g. using const). I'm not sure that I need to warned about every console.log in my code. It's distracting to work flow and AirBnB marks a lot of things as erros that could be warnings.
Is 'comma dangling' the requirement for a comma to be after the last element in a static object?
Yes, that is what comma-dangle refers to (that and arrays).
I hear ya, and honestly if you are working on a project by yourself then do whatever you want. But when you start working with a team, consistency is much more important. I don't want to reverse engineer someone else's code every time I jump into a new project.
I agree that airbnb is not perfect, which is why we've adjusted it at my company, to more closely fit everyone's liking. It wasn't the easiest process to all agree on, but it has made an enormous impact on our productivity. Code reviewing a PR is so much easier now, and we can focus on important things like architecture, patterns, paradigms, and naming, rather than on basic issues and arguing about style.
1
u/ingrown_hair May 28 '19
I’m trying to avoid monkeying with each rule I don’t like. I’d end up back where I started.