# @justia/eslint-config-react

> Justia's ESLint configuration for React projects

Latest version **3.0.3** (published 2026-03-09) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2026-03-09 |
| First published | 2020-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.22.0 |
| Dependencies | 1 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Diego Miguel <digznav@gmail.com> |
| Maintainers | justiauser, mayrop, digznav |
| Keywords | config, eslint, eslintconfig, es2015, es2016, es2017, es2018, justia, styleguide, lint, javascript, react |

## Links

- npm: https://www.npmjs.com/package/@justia/eslint-config-react
- Repository: https://github.com/justia/front-end-projects
- Homepage: https://github.com/justia/front-end-projects/tree/master/packages/eslint-config-react#readme
- Issues: https://github.com/justia/front-end-projects/issues
- npm.io page: https://npm.io/package/@justia/eslint-config-react

## Dependencies (1)

- [@justia/eslint-config](https://npm.io/package/@justia/eslint-config.md) ^5.0.3

## 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.3 (latest) — 2026-03-09
- 3.0.2 — 2025-07-23
- 3.0.1 — 2025-07-08
- 3.0.0 — 2024-07-17
- 2.1.6 — 2024-05-21
- 2.1.5 — 2023-11-13
- 2.1.4 — 2023-08-30
- 2.1.3 — 2023-02-15
- 2.1.2 — 2023-02-09
- 2.1.1 — 2023-01-16
- 2.1.0 — 2023-01-10
- 2.0.3 — 2022-11-28
- 2.0.2 — 2022-11-11
- 2.0.1 — 2022-11-04
- 2.0.0 — 2022-05-31
- … 5 more at https://npm.io/package/@justia/eslint-config-react/versions

## README

<!-- UPDATE-PACKAGES:START - Do not remove or modify this section -->

# `@justia/eslint-config-react` ![version 3.0.3](https://img.shields.io/badge/version-3.0.3-blue?style=flat-square) <!-- omit from toc -->

> Justia's ESLint configuration for React projects

<!-- UPDATE-PACKAGES:END -->

This package uses [`@justia/eslint-config`](https://github.com/justia/front-end-projects/tree/develop/packages/eslint-config) as a base configuration, slightly modifies **prettier** rules and adds React-specific rules for React projects.

## Install

Install the correct versions of the peer dependencies, which are listed by the command:

```shell
npm info "@justia/eslint-config-react@latest" peerDependencies
```

If using **npm 5+**, use this shortcut

```shell
npx install-peerdeps --dev @justia/eslint-config-react
```

If using npm < 5, Linux/OSX users can run

```shell
(
export PKG=@justia/eslint-config-react;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
```

Which produces and runs a command like:

```shell
npm install --save-dev @justia/eslint-config-react eslint@^#.#.# prettier@^#.#.# babel-eslint@^#.#.# eslint-config-prettier@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-prettier@^#.#.# eslint-plugin-promise@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-react-hooks@^#.#.#
```

## Usage

### `@justia/eslint-config-react`

Default configuration that contains all the base ESLint rules, including ECMAScript 6+ and React. It requires the following external packages:

- `eslint`
- `prettier`
- `babel-eslint`
- `eslint-config-prettier`
- `eslint-plugin-import`
- `eslint-plugin-prettier`
- `eslint-plugin-promise`
- `eslint-plugin-jsx-a11y`
- `eslint-plugin-react`

After installation of the package and the peer dependencies, add `"extends": ["@justia/eslint-config-react"]` to your `.eslintrc`.

### `@justia/eslint-config-react/hooks`

This entry point enables the linting rules for React hooks (requires v16.8+). It requires `eslint-plugin-react-hooks`.

To use, add the following to your `.eslintrc`:

```json
{
  "extends": [
    "@justia/eslint-config-react",
    "@justia/eslint-config-react/hooks"
  ]
}
```

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