{"id":19482,"library":"eslint-config-airbnb-base-typescript-prettier","title":"eslint-config-airbnb-base-typescript-prettier","description":"A shareable ESLint configuration combining Airbnb's base style guide with TypeScript support and Prettier integration. v5.1.0 is current; built on eslint-config-airbnb-base and @typescript-eslint/parser. Requires manual installation of peer dependencies. Updated regularly for security; last update v5.1.0 (April 2024). Differentiator: single config package that merges Airbnb's base (no React) with TypeScript and Prettier, avoiding multiple extends.","status":"active","version":"5.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/artelydev/eslint-config-airbnb-base-typescript-prettier","tags":["javascript","eslint","airbnb","typescript","prettier"],"install":[{"cmd":"npm install eslint-config-airbnb-base-typescript-prettier","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-airbnb-base-typescript-prettier","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-airbnb-base-typescript-prettier","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for TypeScript parsing","package":"typescript","optional":false},{"reason":"Peer dependency, core linter","package":"eslint","optional":false},{"reason":"Peer dependency for Prettier formatting","package":"prettier","optional":false}],"imports":[{"note":"This config is base-only; no React preset. Ensure .eslintrc.js is in project root.","wrong":"module.exports = { extends: 'airbnb-base-typescript-prettier/react' }","symbol":"default config","correct":"module.exports = { extends: 'airbnb-base-typescript-prettier' }"},{"note":"Do not override parser; it is already set to @typescript-eslint/parser internally.","wrong":"module.exports = { extends: 'airbnb-base-typescript-prettier', parser: 'babel-eslint' }","symbol":"overrides","correct":"module.exports = { extends: 'airbnb-base-typescript-prettier', rules: { 'no-console': 'off' } }"},{"note":"ESLint by default only lints .js; explicitly include .ts/.tsx extensions.","wrong":"eslint .","symbol":"CLI usage","correct":"npx eslint . --ext .ts,.tsx"}],"quickstart":{"code":"npm install typescript eslint prettier eslint-config-airbnb-base-typescript-prettier --save-dev\necho \"module.exports = { extends: 'airbnb-base-typescript-prettier' };\" > .eslintrc.js\necho \"module.exports = { semi: true, singleQuote: true };\" > .prettierrc.js\nnpx eslint . --ext .ts,.tsx","lang":"javascript","description":"Install peer deps, create config files with base setup, and lint TypeScript files."},"warnings":[{"fix":"Run npm outdated and update peer dependencies.","message":"eslint-config-airbnb-base may deprecate old rules; check compatibility","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"If using React, switch to eslint-config-airbnb-typescript-prettier or add react plugin manually.","message":"v5.0.0 removed JSX plugin; no React preset","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Do not set parser in your .eslintrc; the config uses @typescript-eslint/parser internally.","message":"Overriding parser breaks TypeScript support","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use .eslintrc.js or .eslintrc.json; for flat config, manually extend or migrate.","message":"ESLint 9 flat config not supported; uses legacy config format","severity":"gotcha","affected_versions":">=5.0.0"},{"fix":"Use prettier v2 or adjust Prettier options accordingly.","message":"prettier v3 may deprecate some formatting options; check compatibility with eslint-plugin-prettier","severity":"deprecated","affected_versions":">=5.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev eslint-config-airbnb-base-typescript-prettier","cause":"DevDependencies not installed","error":"Error: Cannot find module 'eslint-config-airbnb-base-typescript-prettier'"},{"fix":"Run: npm install --save-dev @typescript-eslint/parser","cause":"Missing @typescript-eslint/parser, which is a peer dependency of the config","error":"Error: Failed to load parser '@typescript-eslint/parser'"},{"fix":"Ensure .eslintrc.js extends 'airbnb-base-typescript-prettier' and run eslint with --ext .ts,.tsx","cause":"No TypeScript parser setup or missing file extension","error":"typeOptions is not defined (no-undef)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}