This the style that I use and proselytize. Everything is derived from just a handful of core rules:
- 4 spaces for indentation.
- Code block opening curly brackets (braces) are on the same line (as function, for, if, etc.)
- Add spaces around operators and statements.
- Add spaces inside brackets for array and object literals.
- Don't add spaces inside parenthesis.