JavaScript Style Guides

Updated Sep 09, 2021#javascript#lists

Using a standard style guide helps ensure that code is shared easily among developers and any new developer can get up to speed with a given piece of code within no time.

Airbnb’s style guide has gained popularity and is one of the most followed and comprehensive pack of coding standards for writing JavaScript.

  • Airbnb JavaScript Style Guide - Airbnb has one of the most popular JavaScript style guides on the internet. It covers nearly every aspect of JavaScript as well.
  • Google JavaScript Style Guide- This document serves as the complete definition of Google’s coding standards for source code in the JavaScript programming language, focuses primarily on the hard-and-fast rules that we follow universally, and avoids giving advice that isn’t clearly enforceable (whether by human or tool).
  • Idiomatic JavaScript Style Guide - A set of principles for writing consistent, idiomatic JavaScript. All code in any code-base should look like a single person typed it, no matter how many people contributed.
  • StandardJS JavaScript Style Guide - The beauty of JavaScript Standard Style is that it’s simple. No one wants to maintain multiple hundred-line style configuration files for every module/project they work on. Enough of this madness.