Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

compare-eslint-configs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compare-eslint-configs

Compares ESLint configs

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

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:

  • new.eslintrc

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

FAQs

Package last updated on 10 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts