# @tsconfig/next

> A base TSConfig for working with Next.js.

Latest version **2.0.7** (published 2026-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsconfig/next
pnpm add @tsconfig/next
yarn add @tsconfig/next
bun add @tsconfig/next
```

## Health

**Score 60/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2026-11-11 |
| First published | 2021-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 7892 |
| Maintainers | orta, jakebailey |
| Keywords | tsconfig, next |

## Links

- npm: https://www.npmjs.com/package/@tsconfig/next
- Repository: https://github.com/tsconfig/bases
- Homepage: https://github.com/tsconfig/bases#readme
- Issues: https://github.com/tsconfig/bases/issues
- npm.io page: https://npm.io/package/@tsconfig/next

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.7 (latest) — 2026-11-11
- 2.0.6 — 2026-02-26
- 2.0.5 — 2025-12-10
- 2.0.4 — 2025-11-13
- 2.0.3 — 2024-03-27
- 2.0.2 — 2024-03-24
- 2.0.1 — 2023-10-08
- 2.0.0 — 2023-06-28
- 1.0.5 — 2023-01-24
- 1.0.4 — 2022-11-03
- 1.0.3 — 2022-09-28
- 1.0.2 — 2022-02-06
- 1.0.1 — 2021-10-28
- 1.0.0 — 2021-06-09

## README

### A base TSConfig for working with Next.js.

Add the package to your `"devDependencies"`:

```sh
npm install --save-dev @tsconfig/next
yarn add --dev @tsconfig/next
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/next/tsconfig.json"
```

---

The `tsconfig.json`: 

```jsonc
{
  "$schema": "https://www.schemastore.org/tsconfig",
  "_version": "2.0.0",

  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ]
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules"]
}

```

You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/next.json).

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