compare-eslint-configs

2.1.0 • Public • Published

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 .eslintrc new.eslintrc

Or simply:

npx compare-eslint-configs .eslintrc new.eslintrc

Example

CLI output

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

CLI output

Markdown output

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

Only active in some:

Mixed severities:

Mixed configs where otherwise okay:

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

Syntax

compare-eslint <eslint config files, separated by spaces>

If a single config file is given, then it will be assumed to be compared with .eslintrc.

More than two config files can be compafred at once.

Flags

  • -r / --group-rules – when set the comparison output will group by rules rather than config
  • -t <file> / --target-file <file> – defaults to index.js – the file for which the config will be compared. Especially important when there's eg. different configs for .js and .ts files. Then point this to the one you want to do a comparison on.

See also

Readme

Keywords

none

Package Sidebar

Install

npm i compare-eslint-configs

Weekly Downloads

47

Version

2.1.0

License

MIT

Unpacked Size

40.7 kB

Total Files

13

Last publish

Collaborators

  • voxpelli