Coding Style

My preferred coding styles, for spinning up new projects:


Use Standard, which is built on top of RuboCop.

See this post for a good Standard+Rubocop project config, so you can just use Rubocop tooling in your editor.

See also this post, safe-auto-correct is now a default!

A full (manual) configuration set for rails+rspec, noteworthy for the Layout/ClassStructure setting.


Use Standard JS, which is built on top of eslint.


Avatar of Author

Jamie Macey is a senior software engineer with over 15 years experience in the Ruby and Rails ecosystems, largely on the back-end.

Husband, father, gamer, and all-around geek. Ask about my latest 3d print, or toy software project.