eslint-baseline (v0.4.0) is a tool to run ESLint with a baseline file, allowing legacy projects to adopt linting by ignoring existing errors. It creates a `.eslint-baseline.json` file storing known violations, and subsequent runs only report new errors. Key differentiators: hash-based error identification (improved location-based detection), simple CLI workflow, and explicit baseline update command. Released November 2024 with minor features; peer dependency on ESLint 8.x. In early development with unstable APIs.
npm install eslint-baselineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing eslint-baseline, initializing a baseline, configuring package.json scripts, and running lint with baseline update.
Run eslint-baseline --update-baseline to regenerate baseline file.
Update to latest version and regenerate baseline.
Run eslint-baseline --update-baseline after editing files to refresh baseline.
Pin exact version and test updates.
Run `npm install --save-dev eslint` (eslint is a peer dependency).
Install the missing plugin, e.g., `npm install --save-dev eslint-plugin-react`.
Check ESLint documentation for valid config properties; fix the config.
Run `npx eslint-baseline --init` or `npx eslint-baseline --update-baseline`.