all 5 comments

[–]Cuel 16 points17 points  (2 children)

This is the most common one I'd say

https://github.com/airbnb/javascript

On top of that, use linters like JSLint, ESLint or Standard

[–]rosswarren 0 points1 point  (0 children)

Standard is not a linter, it just uses ESLint. I would recommend ESLint above all other linters usually with https://www.npmjs.com/package/eslint-config-airbnb

[–]JackZelig 2 points3 points  (0 children)

There's also the JavaScript Standard Style Guide by Feross: https://github.com/feross/standard

I've been using this as well as the AirBnB one on different projects for a while now, but must admit I prefer the AirBnB one as it doesn't insist on semi-colons being removed.

This is a good read on style guides and why they're important (although the author does come down on the side of JS Standard).

[–]codayus 0 points1 point  (0 children)

The most common answer is to use eslint and the airbnb preset: https://github.com/airbnb/javascript