open-index/open-npm huggingface dataset:
npm package: @superbet/eslint-config-base
Description: Base ESLint configuration, used at Superbet
Latest version: 1.0.0

# Superbet's Base ESLint Configuration

Used to provide a unified configuration across all projects on Superbet's platform.

## Installation

```bash
npm i -SE @superbet/eslint-config-base
```

`.eslintrc`

```json
{
  "extends": "@superbet/eslint-config-base"
}
```
npm package: @superbet/eslint-config-jest
Description: ESLint configuration for Jest projects, used at Superbet
Latest version: 1.0.0

# Superbet's ESLint Configuration for Projects Tested with Jest

Use this configuration to enhance your testing experience with `jest`.

## Installation

```bash
npm i -SE @superbet/eslint-config-jest
```

## Adding it to Your Config

We recommend not mixing this configuration with other configurations related to project files that are not tests. Some rules may come into conflict with non-test files. To avoid this, there are two valid approaches:

### Overriding on a Per-File Basis

`.eslintrc`

```json
{
  "overrides": [
    {
      "files": [
        "**/*.test.js",
        "**/*.test.jsx",
        "**/*.spec.js",
        "**/*.spec.jsx"
      ],
      "extends": "@superbet/eslint-config-jest"
    }
  ]
}
```

### Overriding on a Per-Directory Basis

Either add the following to your `.eslintrc`:

> NOTE: replace `__TESTS__/**/*` with your test directory.

```json
{
  "overrides": [
    {
      "files": ["__TESTS__/**/*"],
      "extends": "@superbet/eslint-config-jest"
    }
  ]
}
```

Or add a new `.eslintrc` file in your test directory:

```json
{
  "extends": "@superbet/eslint-config-jest"
}
```
npm package: @superbet/eslint-config-legacy
Description: ESLint configuration for legacy JavaScript projects, recommended by Superbet
Latest version: 1.0.0

# Superbet's Recommended ESLint Configuration for Legacy Projects

Use this configuration for legacy projects, while you're migrating to a new architecture.

## Installation

```bash
npm i -SE @superbet/eslint-config-legacy
```

`.eslintrc`

```json
{
  "extends": "@superbet/eslint-config-legacy"
}
```
npm package: @superbet/eslint-config-node
Description: ESLint configuration for Node.JS projects, used at Superbet
Latest version: 1.0.0

# Superbet's ESLint Configuration for Node.JS Projects

Add this configuration to your `.eslintrc` if one of the target environments you're working on is Node.JS.

## Installation

```bash
npm i -SE @superbet/eslint-config-node
```

`.eslintrc`

```json
{
  "extends": "@superbet/eslint-config-node"
}
```

## Mixing it Up

Some full stack applications, such as ones written with Next.JS, Remix or Gatsby, use a combination of client and server files in the same project. You can apply this configuration via `"overrides"` to target specific directories:

```json
{
  "overrides": [
    { "files": ["src/api/**/*"], "extends": "@superbet/eslint-config-node" }
  ]
}
```

or if you have a convention to utilise file extensions to determine the target environment:

```json
{
  "overrides": [
    { "files": ["*.server.js"], "extends": "@superbet/eslint-config-node" }
  ]
}
```