This is PascalCase: SomeSymbol
This is camelCase: someSymbol
This is snake_case: some_symbol
So my questions is whether there is a widely accepted name for this: some-symbol
? It's commonly used in url's.
There isn't really a standard name for this case convention, and there is disagreement over what it should be called.
That said, as of 2019, there is a strong case to be made that kebab-case is winning:
spinal-case is a distant second, and no other terms have any traction at all.
Additionally, kebab-case has entered the lexicon of several javascript code libraries, e.g.:
However, there are still other terms that people use. Lisp has used this convention for decades as described in this Wikipedia entry, so some people have described it as lisp-case. Some other forms I've seen include caterpillar-case, dash-case, and hyphen-case, but none of these is standard.
So the answer to your question is: No, there isn't a single widely-accepted name for this case convention analogous to snake_case or camelCase, which are widely-accepted.
The linked wikipedia article currently has a reference that links back to this stack overflow question... specifically to the kebab-case question. Maybe using wikipedia as a source wasn't a clever idea.
@BenLee I'm the one you felt butchered the copy - for which apologies. Note that spinal-case/Train-Case were added to Wikipedia on 2012-10-07 without reference by an anonymous user from an IP address without other Wikipedia history. I couldn't find any other evidence for those terms that didn't circularly go back to Wikipedia. On the other hand, I felt this StackOverflow question did offer evidence that kebab-case has a community of users that doesn't depend on something entered into a Wikipedia article without evidence. I hope that's enough to avoid the original research charge.
I was tempted to remove spinal-case and Train-Case entirely (as likely vandalism); but maybe longstanding Wikipedia vandalism can actually create evidence for itself. That's what seems to have happened here.
I like "catipillar-case" since it's squished and then long, and keeps with the animal theme
kebab-case-because it-looks-like-the-words-are skewered-on-a-kebab