Maveyyl / SanityJS

0 stars 0 forks source link

camelCase or snake_case? #1

Open bojidar-bg opened 8 years ago

bojidar-bg commented 8 years ago

Currently (from a quick glimpse over the readme), it seems like this module uses snake_case for various properties, even though the usual JS recommendation (and most style-guides as well) would recommend lowerFirstCamelCase for object properties. Is this on purpose? :smile:

Maveyyl commented 8 years ago

Did I mix both?

Yes it's on purpose, It's just a personal preference. lowerFirstCamelCase doesn't add sufficient space for me to recognize the shape of the label. I like space. D: I'm sorry if it irritates your eyes.

I'm open to recommendations, if you know a popular style rules feel free to share the link. :)