@tsconfig/nuxt

A base TSConfig for working with Nuxt.
5,295 7,886
Install
npm install @tsconfig/nuxt
Latest Version:2.0.5
License:MIT
Last Updated:Sep 24, 2026
Links: GitHub  ·  npm
Maintainer: orta

A base TSConfig for working with Nuxt.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/nuxt
yarn add --dev @tsconfig/nuxt

Add to your tsconfig.json:

"extends": "@tsconfig/nuxt/tsconfig.json"

NOTE: You may need to add "baseUrl": "." to your tsconfig.json to support proper file resolution.


The tsconfig.json:

{
  "$schema": "https://www.schemastore.org/tsconfig",
  "_version": "2.0.0",
  
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "moduleResolution": "bundler",
    "lib": [
      "esnext",
      "esnext.asynciterable",
      "dom"
    ],
    "esModuleInterop": true,
    "allowJs": true,
    "sourceMap": true,
    "strict": true,
    "noEmit": true,
    "baseUrl": ".",
    "paths": {
      "~/*": [
        "./*"
      ],
      "@/*": [
        "./*"
      ]
    },
    "types": [
      "@types/node",
      "@nuxt/types"
    ]
  },
  "exclude": [
    "node_modules",
    ".nuxt", 
    "dist"
  ]
}

You can find the code here.

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
@ouuan/tsconfig-vue

ouuan's personal TypeScript config for Vue

4,217 0
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
@vue/tsconfig

A base TSConfig for working with Vue.js

71,368,083 360

Version History

Version Released License
2.0.5 MIT
2.0.4 MIT
2.0.3 MIT
2.0.2 MIT
2.0.1 MIT