# @lennardvdberg/eslint-config-react-lennard

> My ESLint configuration for React

Latest version **3.0.0** (published 2024-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lennardvdberg/eslint-config-react-lennard
pnpm add @lennardvdberg/eslint-config-react-lennard
yarn add @lennardvdberg/eslint-config-react-lennard
bun add @lennardvdberg/eslint-config-react-lennard
```

## 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 | 3.0.0 |
| Published | 2024-02-16 |
| First published | 2021-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lennard van den Berg |
| Maintainers | lennardvandenberg |
| Keywords | eslint, typescript, prettier |

## Links

- npm: https://www.npmjs.com/package/@lennardvdberg/eslint-config-react-lennard
- Repository: https://github.com/lennardvandenberg/eslint-config-react
- Homepage: https://github.com/lennardvandenberg/eslint-config-react#readme
- Issues: https://github.com/lennardvandenberg/eslint-config-react/issues
- npm.io page: https://npm.io/package/@lennardvdberg/eslint-config-react-lennard

## Dependencies (10)

- [eslint](https://npm.io/package/eslint.md) 8.56.0
- [prettier](https://npm.io/package/prettier.md) 3.2.5
- [typescript](https://npm.io/package/typescript.md) 5.3.3
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) 27.8.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) 9.1.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) 7.0.1
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) 4.6.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) 7.0.1
- [eslint-plugin-simple-import-sort](https://npm.io/package/eslint-plugin-simple-import-sort.md) 12.0.0
- [eslint-config-airbnb-typescript-prettier](https://npm.io/package/eslint-config-airbnb-typescript-prettier.md) 5.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

- 3.0.0 (latest) — 2024-02-16
- 0.0.0-development — 2024-02-16
- 2.0.1 — 2023-08-01
- 2.0.0 — 2023-08-01
- 1.11.0 — 2022-03-14
- 1.10.0 — 2022-01-26
- 1.9.1 — 2022-01-10
- 1.9.0 — 2022-01-04
- 1.8.0 — 2021-12-19
- 1.7.0 — 2021-12-03
- 1.6.0 — 2021-11-18
- 1.5.0 — 2021-11-14
- 1.4.0 — 2021-11-09
- 1.3.1 — 2021-10-30
- 1.3.0 — 2021-10-26
- … 5 more at https://npm.io/package/@lennardvdberg/eslint-config-react-lennard/versions

## README

# @lennardvdberg/eslint-config-react-lennard

[![npm version](https://badge.fury.io/js/@lennardvdberg%2Feslint-config-react-lennard.svg)](https://badge.fury.io/js/@lennardvdberg%2Feslint-config-react-lennard)

An opinionated default [ESLint](https://github.com/eslint/eslint) + [Typescript](https://github.com/microsoft/TypeScript) + [Prettier](https://github.com/prettier/prettier) configuration for [React](https://github.com/facebook/react). Make Eslint and prettier work with only one package installation.

## Usage

```sh
yarn add @lennardvdberg/eslint-config-react-lennard --dev
```

The [`example`](/example) folder contains the files required to use this configuration. Alternatively, you can also add the ESLint, Prettier and Typescript configuration manually:

1. Create an `.eslintrc.js` file in your project root:

```js
module.exports = {
  extends: 'eslint-config-react-lennard',
  rules: {
    // override or add additional rules here
  },
}
```

2. In `tsconfig.json` (if you want to use my base TS configuration):

```json
{
  "extends": "@lennardvdberg/eslint-config-react-lennard/tsconfig.base"
}
```

3. Create a .prettierrc.js file in your project root and add:

```js
const prettier = require('@lennardvdberg/eslint-config-react-lennard/prettier')

// You can also overwrite some keys in this config

module.exports = prettier
```

Alternatively, in your package.json file add the following key:

```json
{
  "prettier": "@lennardvdberg/eslint-config-react-lennard/prettier"
}
```

4. Also recommended to add an `.editorconfig` file at the project root:

```
root = true

[*]
indent_style = tab
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
```

5. If you're using VSCode, you can copy the files in the .vscode folder to enable "Format on save" and use the ESLint plugin for formatting.

6. This package is meant to be used as an opinionated standalone. It includes both `eslint` and `prettier`. With these you can for example use them in `scripts` in `package.json`:

```json
{
  "scripts": {
    "lint": "eslint ."
  }
}
```

## Releases

Pushes to the 'main' branch are automatically published to NPM. This is done via [semantic-release](https://github.com/semantic-release/semantic-release) which runs on CircleCI, see the [CircleCI config](/.circleci/config.yml). Semantic-release uses the commit messages to check whether a release is necessary and what the version bump will be, see [How does CircleCI work?](https://github.com/semantic-release/semantic-release#how-does-it-work).

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