# @twostoryrobot/eslint-config

> Two Story Robot eslint configuration

Latest version **3.2.0** (published 2025-07-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2025-07-11 |
| First published | 2018-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | calebissharp, jonotron, chrisfosterelli, avvaikethees |

## Links

- npm: https://www.npmjs.com/package/@twostoryrobot/eslint-config
- Repository: https://github.com/TwoStoryRobot/eslint-config
- Homepage: https://github.com/TwoStoryRobot/eslint-config#readme
- Issues: https://github.com/TwoStoryRobot/eslint-config/issues
- npm.io page: https://npm.io/package/@twostoryrobot/eslint-config

## Dependencies (1)

- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.16.5

## Recent versions

- 3.2.0 (latest) — 2025-07-11
- 3.1.1 — 2023-07-04
- 3.1.0 — 2023-01-16
- 3.0.1 — 2022-01-24
- 3.0.0 — 2021-12-22
- 2.2.2 — 2020-09-16
- 2.2.1 — 2020-09-16
- 2.2.0 — 2018-06-07
- 2.1.0 — 2018-05-14
- 2.0.3 — 2018-05-11
- 2.0.2 — 2018-05-10
- 2.0.1 — 2018-04-16
- 2.0.0 — 2018-04-06

## README

[![npm (scoped)](https://img.shields.io/npm/v/@twostoryrobot/eslint-config.svg)](https://www.npmjs.com/package/@twostoryrobot/eslint-config)

# TSR eslint

The Two Story Robot [sharable eslint configuration](https://eslint.org/docs/developer-guide/shareable-configs#using-a-shareable-config)
so you can lint like us.

## Usage

First, install the package:

```bash
npm install --save-dev @twostoryrobot/eslint-config
```

### Node.js

Create an `.eslintrc.js` file:

```javascript
module.exports = {
  extends: '@twostoryrobot'
}
```

Then add the eslint command to your `package.json`:

```
{
  "scripts": {
    "eslint": "eslint '**/*.js'"
  }
}
```

You can then run eslint manually with `npm run eslint`. We also recommend 
running eslint as [part of your tests using jest-runner-eslint](https://github.com/TwoStoryRobot/javascript#automatic-styling). 

### Create React App

Add our config to the existing `eslintConfig` key generated in `package.json`:

```
{
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest",
      "@twostoryrobot/eslint-config/react"
    ]
  }
}
```

Then add the eslint command to your `package.json`:

```
{
  "scripts": {
    "eslint": "eslint '**/*.js'"
  }
}
```

CRA will automatically run lint checks as part of the build. You can also run 
them manually with `npm run eslint`.

Developers may want to set `ESLINT_NO_DEV_ERRORS=true` to avoid eslint errors 
halting the build in development (they will still error in production builds).

### Next.js

Create an `.eslintrc.js` file:

```javascript
module.exports = {
  extends: '@twostoryrobot/eslint-config/next'
}
```

Then add the eslint command to your `package.json`:

```
{
  "scripts": {
    "eslint": "eslint '**/*.js'",
  }
}
```

Next.js will automatically run lint checks as part of the production build. You
can also run them manually with `npm run eslint`.

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