Registry / testing / eslint-interactive

eslint-interactive

JSON →
library13.0.1jsnpmunverified

eslint-interactive is a CLI tool that wraps ESLint to help fix large numbers of errors interactively, grouped by rule. Current stable version is 13.0.1, published under an Apache-2.0 license, with releases following semver. It requires Node.js ^20.19.0 || ^22.12.0 || >=24.0.0 and ESLint >=9.0.0. Unlike plain eslint --fix, it provides per-rule actions: run fix, disable per line, disable per file, convert error to warning, apply suggestions, and forcibly fix. Supports flat config only (eslint.config.js); legacy .eslintrc is dropped. Global installation is not recommended.

npm install eslint-interactive
INSTALL
IMPORT
SIG · ESLINT-INTERACTIVE
E
eslint-interactive
testingjavascriptv13.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

Core
import { Core } from 'eslint-interactive'
Programmatic API; use in Node.js ESM. The Core class exposes methods like applySuggestions and makeFixableAndFix.
default (CLI)
npx eslint-interactive --help
require('eslint-interactive')
eslint-interactive is primarily a CLI tool; programmatic usage via Core is advanced.
Options (TypeScript)
import type { Options } from 'eslint-interactive'
Type import for Core constructor options.

Shows both CLI usage and programmatic API with Core class and applySuggestions method.

// Install locally // npm i -D eslint-interactive eslint // Run the CLI interactively on src/ // npx eslint-interactive src/ // Programmatic usage (ESM): import { Core } from 'eslint-interactive'; const core = new Core({ // Options matching eslint's CLI flags cwd: process.cwd(), extensions: ['.js', '.ts'], }); // Perform a lint run interactively (opens the TUI) await core.lint(['src/']); // Use programmable API to apply suggestions: const result = await core.applySuggestions( ['src/'], (problem, suggestion, metadata) => { // Custom logic to select suggestion return suggestion; // or null to skip }, ); console.log(`Fixed ${result.fixedCount} problems.`);
eslint-interactive --version
Debug
Known issues
breakingDrop ESLint v8 and legacy config (.eslintrc) support.
fix
Upgrade to ESLint >=9.0.0 and migrate to flat config (eslint.config.js).
affects: >=13.0.0
breakingBoolean options no longer accept arguments (e.g. --no-eslintrc=false, --cache=false).
fix
Use --no-eslintrc without a value, or omit the flag altogether.
affects: >=12.0.0
breakingCache disabled by default; --cache-location default changed.
fix
Explicitly pass --cache if you need caching.
affects: >=12.0.0
breakingNode.js >=18 required (v13 requires >=20.19.0).
fix
Use a supported Node.js version.
affects: >=11.0.0
deprecatedGlobal installation is not recommended and only supported on a best-effort basis.
fix
Install eslint-interactive locally as a devDependency.
affects: *
gotchaRequires flat config; if using legacy .eslintrc, you must use eslint-interactive@^12.
fix
Migrate to flat config or downgrade to v12 (but v12 may lack latest features).
affects: >=13.0.0
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eslint-interactive'
Global install or missing local dependency.
fix
Install locally: npm i -D eslint-interactive and use npx or ./node_modules/.bin/eslint-interactive.
Config (unnamed): Key "language"
Incompatible with ESLint 9.5.0+ when using older eslint-interactive (<11.0.3).
fix
Upgrade to eslint-interactive >=11.0.3.
Error: Flat config only. Use eslint-interactive@^12 for legacy config.
Attempting to use eslint-interactive >=13 with .eslintrc.
fix
Migrate to flat config or downgrade to eslint-interactive@^12.
Error: The '--no-eslintrc' option does not accept a value.
Boolean options do not accept =false; use --no-eslintrc flag alone.
fix
Replace --no-eslintrc=false with --no-eslintrc.
Upgrade
Version history
13.0.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: eslint-interactive wraps ESLint and requires it as a peer dependency (>=9.0.0).
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-interactive — npm install eslint-interactive · libregistry