Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Fixup some typescript compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Allypost committed Apr 30, 2021
1 parent 8c48756 commit b8214a5
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"target": "ESNext",
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"module": "ESNext",
// "lib": [], /* Specify library files to be included in the compilation. */
/* Specify library files to be included in the compilation. */
"lib": [
"ESNext",
"ESNext.AsyncIterable",
"DOM"
],
/* Allow javascript files to be compiled. */
"allowJs": true,
// "checkJs": true, /* Report errors in .js files. */
Expand All @@ -22,7 +27,8 @@
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
/* Do not emit outputs. */
"noEmit": true,
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
Expand Down Expand Up @@ -55,11 +61,24 @@
/* Module Resolution Options */
/* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node",
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
/* Base directory to resolve non-absolute module names. */
"baseUrl": ".",
/* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"paths": {
"~/*": [
"./*"
],
"@/*": [
"./*"
]
},
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
/* Type declaration files to be included in compilation. */
"types": [
"@types/node",
"@nuxt/types"
],
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true,
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
Expand All @@ -81,5 +100,8 @@
"skipLibCheck": true,
/* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true
}
},
"exclude": [
"node_modules"
]
}

0 comments on commit b8214a5

Please sign in to comment.