# eslint-reduce

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

Latest version **1.0.0** (published 2017-10-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eslint-reduce
pnpm add eslint-reduce
yarn add eslint-reduce
bun add eslint-reduce
```

Provides the command `eslint-reduce`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-04 |
| First published | 2017-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Benjamin Forster |
| Maintainers | e-e-e |
| Keywords | eslint, config, codeclimate, merge, reduce |

## Links

- npm: https://www.npmjs.com/package/eslint-reduce
- Repository: https://github.com/loanmarket/javascript
- Homepage: https://github.com/loanmarket/javascript#readme
- Issues: https://github.com/loanmarket/javascript/issues
- npm.io page: https://npm.io/package/eslint-reduce

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [commander](https://npm.io/package/commander.md) ^2.11.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-10-04

## README

# 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](codeclimate.com) 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

```js
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
}
```

---
_Source: https://npm.io/package/eslint-reduce · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
