# airbnb-javascript > A mostly reasonable approach to JavaScript. This style guide is focused on ES6+ and is widely adopted in the industry. - Author: mason - Repository: echodev23/agent-skills - Version: 20260125222436 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/echodev23/agent-skills - Web: https://mule.run/skillshub/@@echodev23/agent-skills~airbnb-javascript:20260125222436 --- --- name: airbnb-javascript description: A mostly reasonable approach to JavaScript. This style guide is focused on ES6+ and is widely adopted in the industry. license: MIT metadata: author: airbnb version: "1.0.0" --- # Airbnb JavaScript Style Guide This skill provides the core rules from the Airbnb JavaScript Style Guide (ES6+). It focuses on readability, maintainability, and avoiding common pitfalls. ## Rule Categories ### 1. References - `references` - Use `const` and `let`, avoid `var`. ### 2. Objects & Arrays - `objects` - Literal syntax, computed properties, shorthand methods. - `arrays` - Literal syntax, push, spread, array methods. - `destructuring` - Object and array destructuring patterns. ### 3. Functions - `functions` - Named expressions, no arguments object, default params. - `arrow-functions` - Use arrows for callbacks, implicit returns. ### 4. Classes & Modules - `classes` - Use `class` and `extends`, method chaining. - `modules` - Standard `import`/`export`, no wildcards, default exports. ### 5. Naming - `naming-conventions` - CamelCase, PascalCase, constants, and filenames. ### 6. Control Flow & Comments - `blocks-control-statements` - Braces, no cuddled elses, split long conditions. - `comparison-equality` - strict equality `===`, ternary rules. - `comments` - Multiline/Singleline patterns, FIXME/TODO. ### 7. Formatting & Misc - `formatting` - Whitespace, commas, semicolons. - `accessors-events` - Getters/Setters patterns, Event hashes. - `types` - Primitives vs Complex. - `strings` - Single quotes, template literals. - `hoisting` - Variable declaration placement. - `iterators-generators` - Avoid iterators, use higher-order functions. - `properties` - Dot notation vs brackets. - `type-casting` - Explicit casting helpers. ## How to Use Read individual rule files for detailed explanations and code examples: ``` rules/objects.md rules/functions.md ```