# Airbnb JavaScript Style Guide

> Airbnb's JavaScript style guide and the ESLint configs that enforce it

Source: https://talira.ai/catalog/airbnb-javascript-style-guide-at17d2k0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Backed by: [Airbnb](https://talira.ai/orgs/airbnb.md)

The Airbnb JavaScript Style Guide is Airbnb's set of rules for writing JavaScript, covering types, references, objects, arrays, destructuring, strings, functions, arrow functions, classes, modules and more, with an example of good and bad code for each rule. Its rules are enforced by two [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md) shareable configs: eslint-config-airbnb, which includes the React and JSX rules from [eslint-plugin-react](https://talira.ai/catalog/eslint-plugin-react-3vhwwnrz.md), and eslint-config-airbnb-base without them. The guide assumes Babel and installed polyfills. Separate guides cover React, CSS-in-JavaScript, CSS and Sass, and Ruby.

## Links

- GitHub: https://github.com/airbnb/javascript

## Problems it solves

- agree on one JavaScript code style for my team without writing our own rulebook
- make ESLint enforce a widely used JavaScript style in my React project
- look up how a style guide says to write arrow functions or destructuring in JavaScript

## Features

- a written style guide with good and bad examples for each rule
- eslint-config-airbnb with React, JSX and accessibility rules
- eslint-config-airbnb-base for projects without React
- companion guides for React, CSS-in-JavaScript, CSS and Sass, and Ruby

## Limitations

- The ESLint configs' peerDependencies allow ESLint 7 and 8 only, not later major versions.[^1]
- The guide assumes Babel with babel-preset-airbnb (or equivalent) and installed polyfills.[^2]

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.27, adoption 1.00, momentum 0.89, community 1.00, backing 0.30, extensibility 0.00.

- 148.0k GitHub stars
- 564 contributors
- backed by Airbnb

Warnings:

- last commit 9 months ago

## Related

- Works with [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md)
- Works with [eslint-plugin-react](https://talira.ai/catalog/eslint-plugin-react-3vhwwnrz.md)
- Works with [eslint-plugin-import](https://talira.ai/catalog/eslint-plugin-import-wzhaq4zb.md)

## Alternatives

- [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md): Find and fix problems in your JavaScript code.
- [eslint-plugin-unicorn](https://talira.ai/catalog/eslint-plugin-unicorn-vf1fmajm.md): More than 300 powerful ESLint rules
- [typescript-eslint](https://talira.ai/catalog/typescript-eslint-02q6r6jn.md): The tooling that lets ESLint and Prettier lint and read TypeScript
- [eslint-plugin-react](https://talira.ai/catalog/eslint-plugin-react-3vhwwnrz.md): React-specific linting rules for ESLint
- [eslint-config-prettier](https://talira.ai/catalog/eslint-config-prettier-b63kdk9b.md): Turns off ESLint rules that conflict with Prettier
- [XO](https://talira.ai/catalog/xo-52vbgqne.md): Zero-config JavaScript and TypeScript linter built on ESLint

## Sources

[^1]: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/package.json (checked 28 Nov 2026)
[^2]: https://github.com/airbnb/javascript/blob/master/README.md (checked 28 Nov 2026)
[^3]: https://github.com/airbnb/javascript/blob/master/LICENSE.md (checked 28 Nov 2026)
