Set up a consistent code style for your team by adopting Airbnb's conventions and ESLint config.
Enforce JavaScript best practices automatically in CI/CD pipelines using eslint-config-airbnb.
Learn modern JavaScript patterns and why certain approaches are preferred over others.
Reference specific rules when code reviewing to explain why a change improves readability or maintainability.
This repository is the Airbnb JavaScript Style Guide, described in its own opening line as a mostly reasonable approach to JavaScript. In plain terms, it is a long, opinionated document that tells JavaScript developers how to write their code so that everyone on a team writes it the same way. Instead of being a library you install and call from your app, it is a set of rules and short before-and-after examples that you read and apply when you write or review code. The guide is organized as a big table of contents covering topics like primitive versus complex types, references with const and let instead of var, object and array creation, destructuring, strings, regular and arrow functions, classes, modules, iterators, variables and hoisting, comparison operators, whitespace, commas, semicolons, naming conventions, ES5 and ES6+ styles, the standard library, testing, performance, and more. Each rule comes with a short JavaScript snippet showing a bad version and a good version, and many rules are tied to specific ESLint rule names so they can be enforced automatically with a linter. The note at the top says the guide assumes you are using Babel with babel-preset-airbnb and installing shims through airbnb-browser-shims or equivalents. There are also linked companion guides for React, CSS-in-JavaScript, CSS and Sass, and Ruby, and the README mentions translations into other languages. You would use this guide when your team wants a ready-made style baseline rather than arguing over every formatting choice, or when you want to plug eslint-config-airbnb into your project for automatic enforcement. The full README is longer than what was provided.
Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.