Socket
Book a DemoInstallSign in
Socket

eslint-reduce

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-reduce

"a utility to merge eslint configs into a single eslintrc.json file"

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

eslint-reduce

This is a simple utility for reducing your eslint config into a single .eslintrc.json file without any external dependencies.

We made this tool to help us manage shared our eslint configs across multiple projects while using Code Climate for quality control.

Code Climate currently does not allow users to import custom eslint config files - see this issue https://github.com/codeclimate/codeclimate-eslint/issues/86.

installation

# to use within a project
npm install eslint-reduce --save-dev

# or globally to use as a CLI utility
npm install eslint-reduce --global

CLI usage

  Usage: eslint-reduce [options]

  Options:

    -V, --version          output the version number
    -f, --file             eslint file to reduce
    -o, --output           output file
    -v, --verbose          print information on process
    -h, --help             output usage information

Use in javascript

var eslintReduce = require('eslint-reduce')
var eslintConfig = require('./your-eslint-config')

var reducedConfig = eslintReduce(config)

API

eslintReduce(file, [options])

returns eslint config object.

Options include:

{
  verbose: true|false // log process. default: false
  location: string // specify where to look for extensions.
  exclude: [ strings ] // an array of extendions that you want to ignore
}

Keywords

eslint

FAQs

Package last updated on 04 Oct 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.