compare-eslint-configs

Compare ESLint configs

MIT License

Downloads
239
Stars
12
Committers
2

Compare ESLint configs

Usage

npm install -g compare-eslint-configs
compare-eslint-configs compare .eslintrc new.eslintrc

Or simply:

npx compare-eslint-configs compare .eslintrc new.eslintrc

Commands

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.js

Markdown output

npx compare-eslint-configs compare new.eslintrc -t cli.js -m

Only active in some:

Mixed severities:

Mixed configs where otherwise okay:

  • no-console
  • new.eslintrc:
    [{"allow":["warn","error"]}]
    

See also