# @procore/eslint-config

Procore Technologies, Inc `ESLint` configuration.

## Quick Start

Install the package, using your preferred client:

<details>
  <summary>yarn</summary>

Install `@procore/eslint-config` only.

```bash
yarn add -D @procore/eslint-config
```

Include `@procore/eslint-config` and all peer dependencies.

```bash
yarn add -D @procore/eslint-config eslint@^9.7.0 typescript@^5.9.3
```

</details>

<details>
  <summary>npm</summary>

Install `@procore/eslint-config` only.

```bash
npm install -D @procore/eslint-config
```

Include `@procore/eslint-config` and all peer dependencies.

```bash
npm install -D @procore/eslint-config eslint@^9.7.0 typescript@^5.9.3
```

</details>

Add the configuration to your [ESLint][eslint] flat config (example: `eslint.config.mjs`):

```js
import config from '@procore/eslint-config/flat'

export default [...config]
```

If your project is still using the legacy config format, add the configuration to `.eslintrc.json`:

```json
{
  "extends": ["@procore/eslint-config"]
}
```

Run [ESLint][eslint] as you normally would:

```bash
yarn eslint .
```

**NOTE:** `@procore/eslint-config` requires the following as dependencies in order to work properly:

- `eslint`: ^8.57.0 || ^9.7.0
- `typescript`: >=5.0.0 <6.1.0

It is assumed that most of these are already installed in your project, but you can use the install command(s) above to ensure that any missing dependencies are installed.
