No reason other than that is what I started off with and I’d rather keep things consistent. Had I started off with underscores then I’d be asking the team to stick with that.
I guess that section is more about ‘keep everything the same’ rather than ‘we must specifically use hyphens’ :)
I recently brought this up with my own team after updating a 4-language piece on a project. It was originally pieced together at different times and was inconsistent. However, I was testing the waters with them trying to sell them on underscores.
We've all been using dashes in CSS for so long, but nowadays I personally feel like I'm writing so much JS that I'm longing for underscores.
Downsides:
1. You have to press shift a lot more when writing css
2. ???
Upsides:
1. You can use the "same_name" in CSS and JS
2. You can double-click easily
Feel free to expand on this, we haven't made the change, it's just something that crossed my mind recently :)
I guess that section is more about ‘keep everything the same’ rather than ‘we must specifically use hyphens’ :)
Cheers, H