Files
at-mintel/packages/tsconfig
Marc Mintel d96d6a4b13
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧹 Lint (push) Failing after 10s
Monorepo Pipeline / 🧪 Test (push) Failing after 9s
Monorepo Pipeline / 🏗️ Build (push) Failing after 9s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
chore: release v1.9.9
2026-03-03 12:24:39 +01:00
..
2026-01-31 19:26:46 +01:00
2026-01-31 19:26:46 +01:00
2026-03-03 12:24:39 +01:00
2026-02-01 01:01:16 +01:00

@mintel/tsconfig

Centralized TypeScript configurations for all Mintel projects, ensuring consistent compiler settings and modern target environments.

📦 Configurations

base.json

The foundation for all TypeScript projects in the monorepo.

  • Target: ES2020
  • Module Resolution: bundler
  • Strictness: strict: false (aligned with klz-2026 standards)
  • Features: Enables esModuleInterop, resolveJsonModule, and isolatedModules.

nextjs.json

Extends base.json with specific settings for Next.js applications.

  • Plugins: Includes the next TypeScript plugin for enhanced IDE support.
  • JSX: Set to preserve.

🚀 Usage

In a Next.js App

Create a tsconfig.json in your project root:

{
  "extends": "@mintel/tsconfig/nextjs.json",
  "compilerOptions": {
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules"]
}

In a Library Package

Create a tsconfig.json in your package root:

{
  "extends": "@mintel/tsconfig/base.json",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src"]
}