eslint-config-core
raw JSON → 1.2.0 verified Sat Apr 25 auth: no javascript
eslint-config-core is an ESLint shareable configuration based on the Airbnb JavaScript style guide. The current stable version is 1.2.0. It has a slow release cadence and minimal updates. Its key differentiator is that it directly wraps the Airbnb ESLint rules with no additional customization, serving as a minimal alternative to full Airbnb presets.
Common errors
error Error: Cannot find module 'eslint-config-core' ↓
cause The package is not installed locally or globally.
fix
npm install --save-dev eslint-config-core
Warnings
gotcha The package does not include peer dependencies like eslint or eslint-plugin-import. ↓
fix Manually install eslint and all required plugins (e.g., eslint-plugin-import, eslint-plugin-react if react rules are used).
Install
npm install eslint-config-core yarn add eslint-config-core pnpm add eslint-config-core Imports
- eslint-config-core wrong
"extends": "core"correct"extends": "eslint-config-core" - default wrong
require('eslint-config-core')correctmodule.exports = { extends: 'eslint-config-core' }
Quickstart
// .eslintrc.json
{
"extends": "eslint-config-core"
}