# javascript | Airbnb | Knowledge Base | Instagit

JavaScript Style Guide

GitHub Stars: 148k

Repository: https://github.com/airbnb/javascript

---

## Articles

### [How to Configure the import/extensions Rule in Airbnb ESLint: A Complete Guide](/airbnb/javascript/how-to-configure-import-extensions-rule-properly-airbnb)

Master the import/extensions rule in Airbnb ESLint. Learn to properly configure this essential JavaScript rule to enforce clean imports and avoid extension conflicts in your projects. Get the complete guide now.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Use Airbnb Style Guide Destructuring Rules for Deeply Nested Objects](/airbnb/javascript/how-to-use-destructuring-rules-with-deeply-nested-objects-airbnb)

Master Airbnb destructuring rules for deeply nested objects. Learn how to implement these essential JavaScript patterns to improve code readability and maintainability.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure Environment Variables for Node.js with the Airbnb JavaScript Style Guide](/airbnb/javascript/how-to-configure-environment-variables-for-node-js-airbnb)

Learn how to configure Node.js environment variables following the Airbnb JavaScript Style Guide. Disable the no-process-env ESLint rule and manage your settings effectively.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Resolve Conflicts Between ESLint and Prettier When Using Airbnb Config](/airbnb/javascript/how-to-resolve-conflicts-between-eslint-and-prettier-airbnb)

Resolve ESLint and Prettier conflicts with Airbnb config by using eslint-config-prettier. Learn how to properly configure extends for seamless code formatting.

- Tags: best-practices
- Published: 2026-02-24

### [How to Set Up Pre-Commit Hooks with Airbnb ESLint](/airbnb/javascript/how-to-set-up-pre-commit-hooks-with-airbnb-eslint)

Easily set up pre-commit hooks to automatically lint your JavaScript code with Airbnb ESLint. Block commits with style violations for cleaner code.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Use Airbnb ESLint React Hooks Rules: Complete Setup Guide](/airbnb/javascript/how-to-use-react-hooks-plugin-rules-airbnb)

Master Airbnb ESLint React Hooks rules with our complete setup guide. Install and configure eslint-plugin-react-hooks for cleaner, more efficient React code.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure JSX A11Y Rules for Accessibility in the Airbnb ESLint Config](/airbnb/javascript/how-to-configure-jsx-a11y-rules-for-accessibility-airbnb)

Learn how to configure JSX accessibility rules in your Airbnb ESLint config. Customize accessibility standards and ensure inclusive React development with simple overrides.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Extend Airbnb ESLint Config for TypeScript Projects: A Complete Setup Guide](/airbnb/javascript/how-to-extend-airbnb-config-for-typescript-projects)

Seamlessly extend Airbnb ESLint config for TypeScript projects. Install necessary packages, configure the parser, and resolve conflicts for a smooth setup.

- Tags: how-to-guide
- Published: 2026-02-24

### [Using the Airbnb JavaScript Style Guide with Vue.js: Complete Configuration Guide](/airbnb/javascript/can-i-use-airbnb-style-guide-with-vue-js)

Learn how to use the Airbnb JavaScript style guide with Vue.js. This guide covers complete configuration using airbnb-base and eslint-plugin-vue for seamless integration.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Disable Airbnb ESLint Rules for Legacy Code Sections](/airbnb/javascript/how-to-disable-rules-for-legacy-code-sections-airbnb)

Learn to disable Airbnb ESLint rules for legacy code using the legacy preset or inline comments. Keep your codebase clean and maintainable.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure the max-len Rule for JSX and Long Strings in the Airbnb JavaScript Style Guide](/airbnb/javascript/how-to-configure-max-len-for-jsx-and-long-strings-airbnb)

Learn to configure the max-len rule for JSX and long strings in the Airbnb JavaScript style guide. Customize ESLint to enforce your preferred line lengths effectively.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure the `import/order` Rule for Organized Imports with Airbnb ESLint](/airbnb/javascript/how-to-handle-import-order-rule-for-organized-imports-airbnb)

Master the Airbnb ESLint import/order rule. Customize import sorting with path aliases and newlines to enhance code organization and readability. Learn powerful configuration tips.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure the arrow-body-style Rule for Object Literals in Airbnb ESLint](/airbnb/javascript/how-to-configure-arrow-body-style-for-object-literals-airbnb)

Learn how to configure the arrow-body-style rule for object literals in Airbnb ESLint. Override the default settings to enforce explicit return statements for better code clarity and control.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Fix `prefer-const` Violations Using the Airbnb JavaScript Style Guide](/airbnb/javascript/how-to-fix-prefer-const-violations-airbnb)

Learn to fix prefer-const violations in your JavaScript code with the Airbnb style guide. Discover automatic and manual solutions to ensure immutable variable declarations.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Configure Airbnb ESLint for Node.js Backend Projects](/airbnb/javascript/how-to-configure-airbnb-eslint-for-node-js-backend)

Configure Airbnb ESLint for Node.js backends. Install eslint-config-airbnb-base and extend it to enforce style rules without React for cleaner code.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Use the Airbnb Style Guide with Create React App: Complete Integration Guide](/airbnb/javascript/how-to-use-airbnb-style-guide-with-create-react-app)

Integrate the Airbnb style guide with Create React App seamlessly. Follow this complete guide to configure ESLint and ensure code consistency for your React projects.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Migrate from TSLint to Airbnb ESLint Config: A Complete Guide](/airbnb/javascript/how-to-migrate-from-tslint-to-airbnb-eslint-config)

Easily migrate from TSLint to Airbnb ESLint config. This guide details uninstalling TSLint, installing necessary ESLint packages and setting up your .eslintrc for a smooth transition.

- Tags: migration-guide
- Published: 2026-02-24

### [How to Integrate Airbnb ESLint Config with Prettier: Complete Setup Guide](/airbnb/javascript/how-to-integrate-airbnb-eslint-config-with-prettier)

Learn to integrate Airbnb ESLint config with Prettier for seamless code formatting. Follow our guide to install dependencies and configure ESLint for cleaner, consistent code.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Use Airbnb Style Guide with TypeScript: Complete Configuration Guide](/airbnb/javascript/how-to-use-airbnb-style-guide-with-typescript)

Configure Airbnb style guide with TypeScript easily. Integrate eslint-config-airbnb-typescript for superior linting and type checking in your projects.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Disable Specific ESLint Rules for a Single File in Airbnb Config](/airbnb/javascript/how-to-disable-specific-rules-for-a-single-file-airbnb)

Learn how to disable specific ESLint rules in Airbnb config for a single file. Use an ESLint disable comment or configure overrides in your .eslintrc file for precise control.

- Tags: how-to-guide
- Published: 2026-02-24

### [How to Override Specific Airbnb ESLint Rules: A Complete Guide](/airbnb/javascript/how-to-override-specific-airbnb-eslint-rules)

Easily override specific Airbnb ESLint rules in your .eslintrc or eslint.config.js file. Learn how to customize your JavaScript linting configuration for better code quality and consistency.

- Tags: how-to-guide
- Published: 2026-02-24

### [Difference Between eslint-config-airbnb and eslint-config-airbnb-base: Complete Guide](/airbnb/javascript/difference-between-eslint-config-airbnb-and-eslint-config-airbnb-base)

Understand the difference between eslint-config-airbnb and eslint-config-airbnb-base. Learn which Airbnb ESLint config suits your JavaScript or React project for better code quality.

- Tags: deep-dive
- Published: 2026-02-24

### [How to Configure eslint-config-airbnb with Webpack: Complete Integration Guide](/airbnb/javascript/how-to-configure-eslint-config-airbnb-with-webpack)

Seamlessly integrate eslint-config-airbnb with Webpack. Follow our guide to install dependencies, configure ESLint, and set up eslint-webpack-plugin for style guide enforcement.

- Tags: how-to-guide
- Published: 2026-02-24

