eslint-config-airbnb-prettier

raw JSON →
1.1.0 verified Sat Apr 25 auth: no javascript deprecated

Combines Airbnb's ESLint configuration with Prettier formatting to provide a consistent code style without conflicts. Version 1.1.0 is the latest stable release, published as a simple one-off package. It bundles eslint-config-prettier to disable Airbnb rules that would conflict with Prettier. Note that this package has not been updated since 2018 and relies on deprecated ESLint 4.x, making it unsuitable for modern ESLint 5+ or React 17 projects. Alternatives include using eslint-config-airbnb directly with eslint-config-prettier, or adopting standardized configs.

error ESLint couldn't find the config "airbnb-prettier".
cause Missing or incorrectly installed eslint-config-airbnb-prettier package.
fix
Ensure the package is installed: npm install --save-dev eslint-config-airbnb-prettier
error Cannot find module 'eslint-config-airbnb'
cause eslint-config-airbnb is a transitive dependency but not installed due to npm peer dependency issues.
fix
Install eslint-config-airbnb manually: npm install --save-dev eslint-config-airbnb
deprecated This package is no longer maintained and relies on ESLint 4.x, which is deprecated.
fix Use eslint-config-airbnb with eslint-config-prettier separately to support modern ESLint versions.
breaking ESLint 4.x peer dependency prevents usage with ESLint 5+.
fix Downgrade to ESLint 4.x or switch to alternative config setup.
gotcha The extends value must be 'airbnb-prettier', not 'airbnb/prettier'.
fix Set extends to 'airbnb-prettier'.
npm install eslint-config-airbnb-prettier
yarn add eslint-config-airbnb-prettier
pnpm add eslint-config-airbnb-prettier

Shows how to install and configure eslint-config-airbnb-prettier in an .eslintrc.json file, enabling Airbnb rules with Prettier conflict resolution.

// Install dependencies
// npm install --save-dev eslint eslint-config-airbnb-prettier

// .eslintrc.json
{
  "extends": [
    "airbnb-prettier"
  ],
  "rules": {}
}

// Run lint
// npx eslint src/