Registry / testing / eslint-config-auto

eslint-config-auto

JSON →
library0.9.0jsnpmunverified

Automatically configure ESLint based on project dependencies. Version 0.9.0. Analyzes your package.json dependencies and selects appropriate Airbnb ESLint config and plugins (Babel, React, TypeScript, etc.) dynamically. Reduces manual ESLint config management. Notable for auto-detecting plugins like eslint-plugin-react, eslint-plugin-jsx-a11y, and more. Released under MIT license. Lower maintenance as of recent versions.

npm install eslint-config-auto
INSTALL
IMPORT
SIG · ESLINT-CONFIG-AUTO
E
eslint-config-auto
testingjavascriptv0.9.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-config-auto
✓ extends: ['auto'] in .eslintrc
✗ import eslintConfigAuto from 'eslint-config-auto'
This is an ESLint config package, not a JavaScript import. Use in .eslintrc extends field.
auto
✓ { "extends": "auto" }
✗ { "extends": "eslint-config-auto" }
The shorthand 'auto' works because the package name starts with 'eslint-config-'. Long form also works but is unnecessary.

Shows install, config file setup, and typical ESLint usage with auto-detection of plugins.

// 1. Install npm install eslint-config-auto --save-dev // 2. Create .eslintrc.json { "extends": ["auto"], "settings": { "react": { "version": "detect" }, "compat": { "targets": ["> 1%", "last 2 versions", "not dead"] } } } // 3. Add scripts to package.json "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx src/", "lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx src/" } // 4. Run first lint to get install instructions for plugins npm run lint
Debug
Known issues
breakingAuto-detected plugins are not installed automatically; run the command printed on first lint.
fix
Copy and paste the npm install output printed when you first run ESLint after adding eslint-config-auto.
affects: >=0.1.0
gotchaIf you customize rules, they may conflict with auto-detected plugin rules on future updates.
fix
Add your custom rules after the 'auto' extends, or disable specific rules in overrides.
affects: >=0.1.0
gotchaBabel parser is only set if babel is in devDependencies or settings.babel=true; otherwise default parser used.
fix
Add babel to devDependencies or set 'babel':true in settings if using transpiled code (e.g., create-react-app).
affects: >=0.1.0
deprecatedeslint-plugin-compat is only loaded if settings.compat = true; otherwise ignored.
fix
Explicitly set settings.compat = true in .eslintrc to enable compat checks.
affects: >=0.3.0
Errors
Common errors & fixes
Error: Failed to load plugin 'xxx' declared in 'eslint-config-auto': Cannot find module 'eslint-plugin-xxx'
Required plugin not installed; eslint-config-auto expects all plugins to be present in node_modules.
fix
Run the npm install command printed in the eslint output (e.g., npm install eslint-plugin-react --save-dev)
Parsing error: Babel not found
Babel is required for certain syntax (JSX, Flow) but not installed or not in devDependencies.
fix
Add 'babel' to devDependencies or set settings.babel=true in .eslintrc
Upgrade
Version history
0.9.0latest on npm
Audit
Dependencies
eslint-config-airbnb-baseoptionalBase Airbnb ESLint config used when no React or TypeScript detected
eslint-config-airbnboptionalFull Airbnb config used when React dependencies present
eslint-config-prettieroptionalAutomatically extends to disable formatting rules if Prettier is used
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-auto — npm install eslint-config-auto · libregistry