Airbnb's base ESLint config (without React) for enforcing consistent JavaScript style, version 15.0.0. Provides two configs: 'airbnb-base' for ES6+ and 'airbnb-base/legacy' for ES5 and below. Requires peer dependencies eslint ^7.32.0 || ^8.2.0 and eslint-plugin-import ^2.25.2. Actively maintained as part of the Airbnb JavaScript style guide. Differentiators: widely adopted, opinionated ruleset, and explicit support for legacy environments.
npm install eslint-config-airbnb-baseVerified import paths — ran on the pinned version, not inferred.
Shows how to install peer dependencies and use the airbnb-base config for ES6+ linting.
Update eslint to ^7.32.0 or ^8.2.0.
Update eslint-plugin-import to ^2.25.2.
Install locally with --save-dev.
Use extends: 'airbnb-base/legacy' for ES5 projects.
Run npx install-peerdeps --dev eslint-config-airbnb-base.
npm install --save-dev eslint-plugin-import@^2.25.2.