# @onidivo/eslint-config

> The ESLint configuration used by Onidivo

Latest version **1.0.54** (published 2024-05-21) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.54 |
| Published | 2024-05-21 |
| First published | 2022-08-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 2 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Onidivo |
| Maintainers | remyoucef |

## Links

- npm: https://www.npmjs.com/package/@onidivo/eslint-config
- npm.io page: https://npm.io/package/@onidivo/eslint-config

## Dependencies (2)

- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.1.0
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) ^15.0.0

## Recent versions

- 1.0.54 (latest) — 2024-05-21
- 1.0.53 — 2024-05-20
- 1.0.52 — 2024-05-20
- 1.0.51 — 2024-05-20
- 1.0.50 — 2024-05-20
- 1.0.49 — 2024-05-20
- 1.0.48 — 2024-05-18
- 1.0.47 — 2024-05-18
- 1.0.46 — 2024-05-18
- 1.0.45 — 2022-08-11
- 1.0.44 — 2022-08-07
- 1.0.43 — 2022-08-07

## README

# [onidivo](https://onidivo.com)/eslint-config

## Installation

Install our configuration and its peer dependencies.

```.sh
yarn add --dev @onidivo/eslint-config
OR
npm install --save-dev eslint @onidivo/eslint-config
```

```.sh
npx install-peerdeps --dev @onidivo/eslint-config
```

Create a `.eslintrc.json` file in your root with the following content:

```.json
{
  "extends": [
    "@onidivo/eslint-config",
  ]
}
```

Add a linter script to your `package.json`. In the following example, all files in the `src` and `test` folder (and
their subfolders) are checked:

```.json
{
  "scripts": {
    "lint": "eslint \"+(src|test)/**/*.js\" --fix"
  }
}
```

## Watcher task

You can use [`chokidar-cli`](https://github.com/kimmobrunfeldt/chokidar-cli) to add a task that lints your files on
save. First install it:

```.sh
yarn add --dev chokidar-cli
OR
npm install --save-dev chokidar-cli
```

Then add a watch script to your `package.json`. In the following example, chokidar will look for changes in any files in
the `src` and `test` folder (and their subfolders):

```.json
{
  "scripts": {
    "lint": "eslint \"+(src|test)/**/*.js\" --fix",
    "lint:watch": "npm run watch:js -- -c \"npm run lint\"",
    "watch:js": "chokidar \"+(src|test)/**/*.js\" --initial"
  }
}
```

## Usage with WebStorm

* Import [webstorm-code-style.xml](webstorm-code-style.xml) in preferences `Editor › Code Style › JavaScript`.
* Deactivate `Unterminated statement` inspection in preferences `Editor › Inspections`

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