# @digitalroute/eslint-config

> Eslint configuration for DigitalRoute

Latest version **5.0.0** (published 2024-07-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2024-07-24 |
| First published | 2020-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Julius Celik |
| Maintainers | dot-bot, pierre.lemerle, polarn, jcelik, timberbain, saeger |
| Keywords | digitalroute, eslint, eslint-config |

## Links

- npm: https://www.npmjs.com/package/@digitalroute/eslint-config
- Repository: https://github.com/digitalroute/dazzler-npm-config
- Homepage: https://github.com/digitalroute/dazzler-npm-config#readme
- Issues: https://github.com/digitalroute/dazzler-npm-config/issues
- npm.io page: https://npm.io/package/@digitalroute/eslint-config

## Dependencies (9)

- [eslint](https://npm.io/package/eslint.md) ^8.57.0
- [eslint-config-xo](https://npm.io/package/eslint-config-xo.md) ^0.43.1
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^27.9.0
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^49.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.1.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.2.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.21.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^6.21.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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2024-07-24
- 4.4.0 — 2024-03-26
- 4.3.0 — 2024-02-29
- 4.2.0 — 2023-11-10
- 4.1.0 — 2023-10-12
- 4.0.0 — 2023-10-11
- 3.1.0 — 2023-10-10
- 3.0.0 — 2023-10-10
- 2.2.0 — 2022-04-05
- 2.1.0 — 2020-07-20
- 2.0.0 — 2020-07-20
- 1.4.0 — 2020-07-03
- 1.3.0 — 2020-06-26
- 1.2.1 — 2020-06-25
- 1.2.0 — 2020-06-25
- … 5 more at https://npm.io/package/@digitalroute/eslint-config/versions

## README

# @digitalroute/eslint-config

Eslint shareable configuration for Digitalroute projects. It is meant to be used with [prettier](https://github.com/digitalroute/dazzler-npm-config.git/browse/packages/prettier-config), and is therefore for code-quality concerns instead of code formatting.

## Usage

### 1 Install

Install this config as a `devDependency`:

```bash
npm install @digitalroute/eslint-config --save-dev
```

### 2 Configure

Add the following to your `package.json`:

```jsonc
{
  "eslint": {
    "extends": "@digitalroute/eslint-config"
  }
}
```

or for typescript projects

```jsonc
{
  "eslintConfig": {
    "extends": "@digitalroute/eslint-config/typescript"
  }
}
```

### 3 Add script

Add the following to your scripts in `package.json`:

```jsonc
"eslint": "eslint '{src,test}/**/*.{js,jsx,ts,tsx}'",
```

Replace `{src,test}` with any top-level directories you want to test.

## What does this configuration use?

This configuration extends the following configurations (in chronological order):

- eslint:recommended
- xo-space
- plugin:node/recommended
- plugin:unicorn/recommended
- **(Only in typescript)** plugin:@typescript-eslint/eslint-recommended
- **(Only in typescript)** plugin:@typescript-eslint/recommended
- prettier

## Maintenance and upgrades

eslint has released version 9, but typescript/eslint-parser v 7 does not yet support eslint 9. This is the reason for staying at version 8.

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