Skip to content

voxpelli/compare-eslint-configs

Repository files navigation

Compare ESLint configs

npm version npm downloads js-semistandard-style ES Module Ready Badge Types in JS

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

CLI output

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