cheatcode / joystick

A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.
https://cheatcode.co/joystick
Other
209 stars 11 forks source link

Convert all camel cased variables and options to snake_case #336

Closed rglover closed 2 months ago

rglover commented 1 year ago

This may seem ridiculous/unnecessary but the more I've worked with data, the more I've preferred snake_case. It adds a predictability and clarity that avoids a lot of errors. Not only that, but it works well with dot notation in JavaScript.

Mild pain in the butt, but it will be worth it from a maintenance perspective.

rglover commented 1 year ago

For any existing API options that leverage camelCase (e.g., accounts APIs with emailAddress), leave that as an option but prefer email_address in the docs and support it internally.

rglover commented 2 months ago

Done. Where appropriate, the legacy camelCase is still supported.