# @prunus/eslint-config

> # Installation

Latest version **0.1.2** (published 2022-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @prunus/eslint-config
pnpm add @prunus/eslint-config
yarn add @prunus/eslint-config
bun add @prunus/eslint-config
```

## 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.1.2 |
| Published | 2022-01-20 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 94.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Tony |
| Maintainers | tony-tsx |

## Links

- npm: https://www.npmjs.com/package/@prunus/eslint-config
- Repository: https://github.com/prunus/eslint-config
- npm.io page: https://npm.io/package/@prunus/eslint-config

## Dependencies (9)

- [prettier](https://npm.io/package/prettier.md) ^2.3.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.23.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.3.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.0.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.10.0
- [confusing-browser-globals](https://npm.io/package/confusing-browser-globals.md) ^1.0.10
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.2.0
- [eslint-plugin-import-helpers](https://npm.io/package/eslint-plugin-import-helpers.md) ^1.1.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.10.0

## Recent versions

- 0.1.2 (latest) — 2022-01-20
- 0.0.0-experimental-cf786cc (experimental) — 2021-09-30
- 0.0.0-experimental-1faec8b — 2021-10-12
- 0.0.0-experimental-ae3f1dc — 2021-09-30
- 0.1.1 — 2021-09-05
- 0.0.17 — 2021-08-24
- 0.0.16 — 2021-08-24
- 0.0.15 — 2021-05-28
- 0.0.14 — 2021-05-21
- 0.0.13 — 2021-05-21
- 0.0.12 — 2021-05-21
- 0.0.11 — 2021-05-20
- 0.0.10 — 2021-05-20
- 0.0.9 — 2021-05-20
- 0.0.8 — 2021-05-20
- … 7 more at https://npm.io/package/@prunus/eslint-config/versions

## README

# @prunus/eslint-config

# Installation

## <a name="full-installation"></a> Full installation
```sh
yarn add -D @prunus/eslint-config;
npx install-peerdeps --dev @prunus/eslint-config;
```

or

```sh
yarn add -D @prunus/eslint-config eslint typescript
```

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

```json
{
    "extends": "@prunus"
}
```

---

## Installation using only __JavaScript__
```sh
yarn add -D eslint @prunus/eslint-config eslint-plugin-import-helpers
```

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

```json
{
    "extends": "@prunus/eslint-config/js"
}
```

---

## Installation using __JavaScript__ and __JSX__
```sh
yarn add -D eslint @prunus/eslint-config eslint-plugin-import-helpers eslint-plugin-react eslint-plugin-react-hooks
```

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

```json
{
    "extends": "@prunus/eslint-config/jsx"
}
```

---

## Installation usign only __TypeScript__
```sh
yarn add -D eslint @prunus/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import-helpers typescript
```

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

```json
{
  "extends": "@prunus/eslint-config/ts"
}
```

---

## Installation using __TypeScript__ and __JSX__

It's the same thing as  [full installation](#full-installation)

# Setup

Follow scripts create:

```sh
npm set-script lint "eslint ."
npm set-script lint:fix "eslint . --fix"
```

Setup with husky using yarn:
```sh
npx husky add .husky/pre-push 'yarn lint'
```

Setup with husky using npm:
```sh
npx husky add .husky/pre-push 'npm run lint'
```

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