npm install -g compare-eslint-configs
compare-eslint-configs compare .eslintrc new.eslintrc
Or simply:
npx compare-eslint-configs compare .eslintrc new.eslintrc
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
Found by running compare-eslint-configs <command> --help
, eg: compare-eslint-configs compare --help
npx compare-eslint-configs compare new.eslintrc -t cli.js
npx compare-eslint-configs compare new.eslintrc -t cli.js -m
- new.eslintrc
- func-style
- warn: .eslintrc
- error: new.eslintrc
- unicorn/prefer-event-target
- warn: .eslintrc
- error: new.eslintrc
- no-console
- new.eslintrc:
[{"allow":["warn","error"]}]
@voxpelli/eslint-formatter-summary
– can summarize errors/warnings by ESLint rule + print that list as markdown