A Prettier configuration package that translates the Airbnb JavaScript style guide into Prettier options. Version 1.0.0 is the only release; no updates or new releases since its initial publication. It provides a ready-to-use set of Prettier rules covering quotes, trailing commas, semicolons, bracket spacing, arrow parentheses, and JSX settings, aligning with common Airbnb style conventions. Unlike other configs that may be more opinionated or regularly updated, this package is a simple snapshot of Airbnb's style from that time and does not keep pace with Prettier or Airbnb guideline changes. It requires Prettier 1.18.2 as a peer dependency.
npm install prettier-airbnb-configVerified import paths — ran on the pinned version, not inferred.
Install and configure Prettier to use the Airbnb-based config via package.json or .prettierrc.js with optional overrides.
Upgrade to a maintained Prettier config or manually update your Prettier config to remove deprecated options.
If using Prettier 2+, set arrowParens to 'always' or consider using a different config.
Replace 'jsxBracketSameLine' with 'bracketSameLine' in your config.
Ensure your ESLint rule for object-curly-spacing matches Prettier's setting to avoid inconsistencies.
Use a community-maintained alternative like @trivago/prettier-plugin-sort-imports or adjust settings manually.
Run: npm install prettier-airbnb-config --save-dev
Change to: const config = require('prettier-airbnb-config');Set the 'prettier' key in package.json to the string "prettier-airbnb-config" or use a .prettierrc.js with module.exports = require('prettier-airbnb-config');Set arrowParens to 'always' or upgrade to a newer Prettier config.