{"id":19491,"library":"eslint-config-babel","title":"eslint-config-babel","description":"ESLint configuration preset for Babel's own codebase. Version 9.0.0 last updated 2021. Not actively maintained; the Babel team now uses @babel/eslint-plugin. This config enforces strict formatting and is primarily intended for internal Babel projects, not general use. Requires babel-eslint and eslint-plugin-flowtype as peer dependencies. Replaced by @babel/eslint-config in Babel 7.12+.","status":"maintenance","version":"9.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/babel/eslint-config-babel","tags":["javascript"],"install":[{"cmd":"npm install eslint-config-babel","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-babel","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for parsing Babel-transformed code","package":"babel-eslint","optional":false},{"reason":"Peer dependency for Flow type annotations","package":"eslint-plugin-flowtype","optional":false}],"imports":[{"note":"When using extends in .eslintrc, you can omit the 'eslint-config-' prefix.","wrong":"module.exports = { extends: ['eslint-config-babel'] }","symbol":"default config","correct":"module.exports = { extends: ['babel'] }"},{"note":"This package does not export a named member; it's a default export object.","wrong":"import { babel } from 'eslint-config-babel'","symbol":"babel (ESM)","correct":"import babel from 'eslint-config-babel'; export default { extends: ['babel'] }"},{"note":"CommonJS usage requires default import.","wrong":"const { babel } = require('eslint-config-babel')","symbol":"require (CommonJS)","correct":"const babel = require('eslint-config-babel'); module.exports = { extends: ['babel'] }"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['babel'],\n  parserOptions: {\n    ecmaFeatures: { jsx: true },\n  },\n  env: {\n    es6: true,\n    node: true,\n  },\n  plugins: ['flowtype'],\n  rules: {\n    'flowtype/define-flow-type': 'warn',\n  },\n};\n","lang":"javascript","description":"Basic ESLint configuration using eslint-config-babel for a Node.js project with Flowtype support."},"warnings":[{"fix":"Switch to @babel/eslint-config and uninstall eslint-config-babel.","message":"eslint-config-babel is no longer actively maintained; use @babel/eslint-config instead.","severity":"deprecated","affected_versions":">=9.0.0"},{"fix":"Downgrade babel-eslint to v10 or v11, or migrate to @babel/eslint-parser.","message":"Version 9.0.0 requires babel-eslint ^10.0.0 || ^11.0.0-0 – version 12+ incompatible.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Run: npm install --save-dev eslint-plugin-flowtype@^3.0.0","message":"The config expects eslint-plugin-flowtype v3; install it as a devDependency.","severity":"gotcha","affected_versions":">=9.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-plugin-flowtype@^3.0.0","cause":"Missing required peer dependency eslint-plugin-flowtype.","error":"Error: Failed to load plugin 'flowtype' declared in 'node_modules/eslint-config-babel/index.js': Cannot find module 'eslint-plugin-flowtype'"},{"fix":"npm install --save-dev babel-eslint@^10.0.0","cause":"Missing required peer dependency babel-eslint.","error":"Error: Cannot find module 'babel-eslint'"},{"fix":"Migrate to @babel/eslint-config as recommended.","cause":"Package is no longer maintained.","error":"Warning: eslint-config-babel is deprecated. Use @babel/eslint-config instead."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}