Compare ESLint configs
Usage
npm install -g compare-eslint-configs
compare-eslint-configs compare .eslintrc new.eslintrcOr simply:
npx compare-eslint-configs compare .eslintrc new.eslintrcCommands
Found by running compare-eslint-configs --help
- compare - compares the provided eslint config file(s)
- diff - prints what's changed between the second and the first file
- summary - prints a summary of the specified configs
Options
Found by running compare-eslint-configs <command> --help, eg: compare-eslint-configs compare --help
Example
CLI output
npx compare-eslint-configs compare new.eslintrc -t cli.jsMarkdown output
npx compare-eslint-configs compare new.eslintrc -t cli.js -mOnly active in some:
- new.eslintrc
Mixed severities:
- func-style
- warn: .eslintrc
- error: new.eslintrc
- unicorn/prefer-event-target
- warn: .eslintrc
- error: new.eslintrc
Mixed configs where otherwise okay:
- no-console
- new.eslintrc:
[{"allow":["warn","error"]}]
See also
@voxpelli/eslint-formatter-summary– can summarize errors/warnings by ESLint rule + print that list as markdown
On this page
Languages
JavaScript99.9%Shell0.1%
MIT License
Created July 13, 2022
Updated October 6, 2025
