{"id":19480,"library":"eslint-config-airbnb-base","title":"eslint-config-airbnb-base","description":"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.","status":"active","version":"15.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/airbnb/javascript","tags":["javascript","eslint","eslintconfig","config","airbnb","styleguide","es2015","es2016"],"install":[{"cmd":"npm install eslint-config-airbnb-base","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-airbnb-base","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-airbnb-base","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for linting","package":"eslint","optional":false},{"reason":"peer dependency required for import rules","package":"eslint-plugin-import","optional":false}],"imports":[{"note":"Config is extended via ESLint's extends, not imported programmatically.","wrong":"Using require or import directly (not a module, it's a config)","symbol":"eslint-config-airbnb-base","correct":"Add \"extends\": \"airbnb-base\" to .eslintrc"},{"note":"Legacy config for ES5.","wrong":"Extending as 'airbnb-base-legacy'","symbol":"eslint-config-airbnb-base/legacy","correct":"Add \"extends\": \"airbnb-base/legacy\" to .eslintrc"},{"note":"Whitespace-only rules, others set to warn.","wrong":"No common mistake","symbol":"eslint-config-airbnb-base/whitespace","correct":"Add \"extends\": \"airbnb-base/whitespace\" to .eslintrc"}],"quickstart":{"code":"// Install peer dependencies and the config\nnpx install-peerdeps --dev eslint-config-airbnb-base\n\n// .eslintrc.json\n{ \"extends\": \"airbnb-base\" }\n\n// Example file to lint (test.js)\nconst foo = 1;\nconsole.log(foo);\n\n// Run ESLint\nnpx eslint test.js","lang":"javascript","description":"Shows how to install peer dependencies and use the airbnb-base config for ES6+ linting."},"warnings":[{"fix":"Update eslint to ^7.32.0 or ^8.2.0.","message":"Version 15.0.0 requires eslint ^7.32.0 || ^8.2.0. Older eslint versions will not work.","severity":"breaking","affected_versions":"14.x"},{"fix":"Update eslint-plugin-import to ^2.25.2.","message":"Version 15.0.0 requires eslint-plugin-import ^2.25.2. Older versions may cause rule failures.","severity":"breaking","affected_versions":"14.x"},{"fix":"Install locally with --save-dev.","message":"Do not install this package globally. It must be installed locally in your project.","severity":"gotcha","affected_versions":"all"},{"fix":"Use extends: 'airbnb-base/legacy' for ES5 projects.","message":"The config assumes ES6+ by default. For ES5, use airbnb-base/legacy.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npx install-peerdeps --dev eslint-config-airbnb-base.","cause":"Package not installed or missing peer dependencies.","error":"ESLint couldn't find the config 'airbnb-base'."},{"fix":"npm install --save-dev eslint-plugin-import@^2.25.2.","cause":"Missing eslint-plugin-import peer dependency.","error":"Rule 'import/no-unresolved' threw a fatal error."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}