# @squibs/eslint-config-typescript-react

> My ESLint configuration for TypeScript React projects.

Latest version **2.0.3** (published 2022-09-23) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2.0.3 |
| Published | 2022-09-23 |
| First published | 2021-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zachary Holman |
| Maintainers | squibs |
| Keywords | eslint, eslintrc, eslintconfig, eslintignore, typescript, react |

## Links

- npm: https://www.npmjs.com/package/@squibs/eslint-config-typescript-react
- Repository: https://github.com/Squibs/squibs-scripts
- Issues: https://github.com/Squibs/squibs-scripts/issues
- npm.io page: https://npm.io/package/@squibs/eslint-config-typescript-react

## Dependencies (13)

- [eslint](https://npm.io/package/eslint.md) ^8.2.0
- [prettier](https://npm.io/package/prettier.md) ^2.7.1
- [typescript](https://npm.io/package/typescript.md) ^4.8.3
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.28.0
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^19.0.4
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.25.3
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.5.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.5.1
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.2.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.0.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.3.0
- [eslint-config-airbnb-typescript](https://npm.io/package/eslint-config-airbnb-typescript.md) ^17.0.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.13.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2022-09-23
- 2.0.2 — 2022-09-22
- 2.0.1 — 2022-09-22
- 1.0.1 — 2021-02-18
- 1.0.0 — 2021-02-14

## README

# @squibs/eslint-config-typescript-react

My ESLint configuration for TypeScript React projects.

This was made with the assumption that Visual Studio Code with the ESLint extension are being used.

## Installation

### 1) Install

**npm:**

`npm i -D @squibs/eslint-config-typescript-react`

**yarn:**

`yarn add -D @squibs/eslint-config-typescript-react`

### 2) Install ESLint plugins (if necessary)

**npm:**

Manually install the listed versions of packages, alongside this package, from the following command:

`npm info "@squibs/eslint-config-typescript-react" peerDependencies`

or have everything automatically installed using this command:

`npx install-peerdeps -D @squibs/eslint-config-typescript-react`

_<font size="2">With `npm version >= 7.0.0` normal package installation: `npm i -D @squibs/eslint-config-typescript-react`, the above is not needed, as it automatically installs peer dependencies.</font>_

**yarn:**

Manually install the listed versions of packages, alongside this package, from the same npm command:

`npm info "@squibs/eslint-config-typescript-react" peerDependencies`

or follow up on the unmet peer dependency warnings which come from a normal yarn package installation:

`yarn add -D @squibs/eslint-config-typescript-react`

_<font size="2">If a `yarn.lock` file already exists for your project: `npx install-peerdeps -D @squibs/eslint-config-typescript-react` can be used to automatically install the peer dependencies, instead, as it will detect that you are already using yarn.</font>_

### 3) Optional:

Include [my Prettier configuration](https://github.com/Squibs/squibs-scripts/tree/main/packages/prettier-config) alongside this.

Include [my TypeScript configuration](https://github.com/Squibs/squibs-scripts/tree/main/packages/eslint-config-typescript) alongside this.

## Usage

Add `@squibs/eslint-config-typescript-react` to the `"extends"` array of your ESLint configuration file. This can be in a `.eslintrc.*` file or inside of `package.json`.

Also make sure to link your `tsconfig.json` to ESLint, as well as update your `"include"` for files you are linting.

`.eslintrc.*`:

```
{
  "extends": [
    "other-eslint-config-in-use-by-you",
    "@squibs/eslint-config-typescript-react"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}
```

`package.json`:

```
{
  "eslintConfig": {
    "extends": [
      "other-eslint-config-in-use-by-you",
      "@squibs/eslint-config-typescript-react"
    ],
    "parserOptions": {
      "project": "./tsconfig.json"
    }
  }
}
```

`tsconfig.json`:

```
"include": ["src/**/*.ts", "src/**/*.js"]
```

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