2020-12-09 08:55:57 +08:00
{
2021-03-15 12:44:58 +08:00
"compilerOptions" : {
2023-04-25 13:03:13 +08:00
/ * V i s i t h t t p s : //aka.ms/tsconfig.json to read more about this file */
/ * B a s i c O p t i o n s * /
// "incremental": true, /* Enable incremental compilation */
"target" : "esnext" / * S p e c i f y E C M A S c r i p t t a r g e t v e r s i o n : ' E S 3 ' ( d e f a u l t ) , ' E S 5 ' , ' E S 2015 ' , ' E S 2016 ' , ' E S 2017 ' , ' E S 2018 ' , ' E S 2019 ' , ' E S 2020 ' , o r ' E S N E X T ' . * / ,
"module" : "esnext" / * S p e c i f y m o d u l e c o d e g e n e r a t i o n : ' n o n e ' , ' c o m m o n j s ' , ' a m d ' , ' s y s t e m ' , ' u m d ' , ' e s 2015 ' , ' e s 2020 ' , o r ' E S N e x t ' . * / ,
"lib" : [ "esnext" , "dom" , "dom.iterable" , "scripthost" ] / * S p e c i f y l i b r a r y f i l e s t o b e i n c l u d e d i n t h e c o m p i l a t i o n . * / ,
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
"jsx" : "preserve" / * S p e c i f y J S X c o d e g e n e r a t i o n : ' p r e s e r v e ' , ' r e a c t - n a t i v e ' , o r ' r e a c t ' . * / ,
// "declaration": true /* Generates corresponding '.d.ts' file. */,
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "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. */
// "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 / * T r a n s p i l e e a c h f i l e a s a s e p a r a t e m o d u l e ( s i m i l a r t o ' t s . t r a n s p i l e M o d u l e ' ) . * / ,
/ * S t r i c t T y p e - C h e c k i n g O p t i o n s * /
"strict" : true / * E n a b l e a l l s t r i c t t y p e - c h e c k i n g o p t i o n s . * / ,
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/ * A d d i t i o n a l C h e c k s * /
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
/ * M o d u l e R e s o l u t i o n O p t i o n s * /
"moduleResolution" : "node" / * S p e c i f y m o d u l e r e s o l u t i o n s t r a t e g y : ' n o d e ' ( N o d e . j s ) o r ' c l a s s i c ' ( T y p e S c r i p t p r e -1.6 ) . * / ,
"baseUrl" : "." / * B a s e d i r e c t o r y t o r e s o l v e n o n - a b s o l u t e m o d u l e n a m e s . * / ,
2021-04-13 15:58:58 +08:00
"paths" : {
2023-04-25 13:03:13 +08:00
"/@/*" : [ "src/*" ]
} / * A s e r i e s o f e n t r i e s w h i c h r e - m a p i m p o r t s t o l o o k u p l o c a t i o n s r e l a t i v e t o t h e ' b a s e U r l ' . * / ,
// "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" : [ "vite/client" ] / * T y p e d e c l a r a t i o n f i l e s t o b e i n c l u d e d i n c o m p i l a t i o n . * / ,
"allowSyntheticDefaultImports" : true / * A l l o w d e f a u l t i m p o r t s f r o m m o d u l e s w i t h n o d e f a u l t e x p o r t . T h i s d o e s n o t a f f e c t c o d e e m i t , j u s t t y p e c h e c k i n g . * / ,
"esModuleInterop" : true / * E n a b l e s e m i t i n t e r o p e r a b i l i t y b e t w e e n C o m m o n J S a n d E S M o d u l e s v i a c r e a t i o n o f n a m e s p a c e o b j e c t s f o r a l l i m p o r t s . I m p l i e s ' a l l o w S y n t h e t i c D e f a u l t I m p o r t s ' . * / ,
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/ * S o u r c e M a p O p t i o n s * /
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/ * E x p e r i m e n t a l O p t i o n s * /
"experimentalDecorators" : true / * E n a b l e s e x p e r i m e n t a l s u p p o r t f o r E S 7 d e c o r a t o r s . * / ,
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/ * A d v a n c e d O p t i o n s * /
"skipLibCheck" : true / * S k i p t y p e c h e c k i n g o f d e c l a r a t i o n f i l e s . * / ,
"forceConsistentCasingInFileNames" : true / * D i s a l l o w i n c o n s i s t e n t l y - c a s e d r e f e r e n c e s t o t h e s a m e f i l e . * /
2022-11-29 22:03:40 +08:00
} ,
2023-04-25 13:03:13 +08:00
"include" : [ "src/**/*.ts" , "src/**/*.vue" , "src/**/*.tsx" , "src/**/*.d.ts" , "auto-imports.d.ts" ] , // **Represents any directory, and * represents any file. Indicates that all files in the src directory will be compiled
"exclude" : [ "node_modules" , "dist" ] // Indicates the file directory that does not need to be compiled
2020-12-21 12:02:01 +08:00
}