A meta style guide for JavaScript
JavaScript has many great style guides. Thus, there is no need to write yet another one. Instead, this blog post describes commonly accepted meta style rules and conventions that I like that are controversial. The idea is to help you make a more informed decision about what is right for you . Existing style guides The two style guides I like best are: Idiomatic.js: Principles of Writing Consistent, Idiomatic JavaScript Google JavaScript Style Guide Additionally, there are two style guides that go meta: Popular Conventions on GitHub : analyzes GitHub code to find out which coding conventions are most frequently used. JavaScript, the winning style : examines what the majority of several popular style guides is recommending. General tips Code should be consistent There are two important rules for writing consistent code. The first rule is that, if you start a new project, you should come up with a style, document it and follow it everywhere. The larger the team, the more i...