# eslint-closest-cli

> Finds the ESLint CLI closest to the current working directory and wraps it

Latest version **0.0.4** (published 2017-09-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-closest-cli
pnpm add eslint-closest-cli
yarn add eslint-closest-cli
bun add eslint-closest-cli
```

Provides the command `eslint-closest-cli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-09-12 |
| First published | 2017-09-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Regenspan |
| Maintainers | benregenspan |
| Keywords | eslint, nearest, closest, cli, cwd |

## Links

- npm: https://www.npmjs.com/package/eslint-closest-cli
- Repository: https://github.com/bregenspan/eslint-closest-cli
- Homepage: https://github.com/bregenspan/eslint-closest-cli#readme
- Issues: https://github.com/bregenspan/eslint-closest-cli/issues
- npm.io page: https://npm.io/package/eslint-closest-cli

## Dependencies (1)

- [findup-sync](https://npm.io/package/findup-sync.md) ^2.0.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

- 0.0.4 (latest) — 2017-09-12
- 0.0.3 — 2017-09-12
- 0.0.2 — 2017-09-11
- 0.0.1 — 2017-09-11

## README

eslint-closest-cli (DEPRECATED)
====================

# DEPRECATED (already!)

I recommend just using [eslint-cli](https://github.com/mysticatea/eslint-cli), which
updates the `eslint` command itself to match the most desirable behavior (calling
local eslint if available)

--------------------------

Wrapper for ESLint CLI. Finds the closest copy of ESLint to the current working directory
and executes it.

This can be useful if you use a monorepo project structure like the following,
in which the parent project is responsible for ESLint config (including locally-installed
ESLint) and the child project simply inherits it:

```
PARENT_PROJECT
  \
  package.json [package.json with "eslint"]
  .eslintrc
  CHILD_PROJECT
    \
    package.json [package.json without "eslint"]
```

In such a case, tools that check for `$(npm-bin)/eslint`, or that add `$(pwd)/node_modules/.bin` to the PATH,
can't find the local ESLint CLI and end up falling back to a global install.

## Installation

`npm install -g eslint-closest-cli`

## Usage

Pass along any options that you would ordinarily pass directly to `eslint`, e.g.:

`eslint-closest-cli --help`

`eslint-closest-cli *.js`

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