Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default config
✓ module.exports = { extends: ['babel'] }
✗ module.exports = { extends: ['eslint-config-babel'] }
When using extends in .eslintrc, you can omit the 'eslint-config-' prefix.
babel (ESM)
✓ import babel from 'eslint-config-babel'; export default { extends: ['babel'] }
✗ import { babel } from 'eslint-config-babel'
This package does not export a named member; it's a default export object.
require (CommonJS)
✓ const babel = require('eslint-config-babel'); module.exports = { extends: ['babel'] }
✗ const { babel } = require('eslint-config-babel')
CommonJS usage requires default import.
Basic ESLint configuration using eslint-config-babel for a Node.js project with Flowtype support.
// .eslintrc.js
module.exports = {
extends: ['babel'],
parserOptions: {
ecmaFeatures: { jsx: true },
},
env: {
es6: true,
node: true,
},
plugins: ['flowtype'],
rules: {
'flowtype/define-flow-type': 'warn',
},
};
Errors
Common errors & fixes
Error: Failed to load plugin 'flowtype' declared in 'node_modules/eslint-config-babel/index.js': Cannot find module 'eslint-plugin-flowtype'
Missing required peer dependency eslint-plugin-flowtype.
fixnpm install --save-dev eslint-plugin-flowtype@^3.0.0
Error: Cannot find module 'babel-eslint'
Missing required peer dependency babel-eslint.
fixnpm install --save-dev babel-eslint@^10.0.0
Warning: eslint-config-babel is deprecated. Use @babel/eslint-config instead.
Package is no longer maintained.
fixMigrate to @babel/eslint-config as recommended.
Audit
Dependencies
babel-eslintrequiredPeer dependency required for parsing Babel-transformed code
eslint-plugin-flowtyperequiredPeer dependency for Flow type annotations