2.0.3 • Published 2 months ago

@tsconfig/nuxt v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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://json.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.

2.0.3

2 months ago

2.0.2

8 months ago

2.0.1

9 months ago

2.0.0

11 months ago

1.0.1

1 year ago

1.0.0

3 years ago