The presence of files in a directory tsconfig.json
indicates that this directory is the root of a TypeScript project. This tsconfig.json
file specifies the root files and compiler options required to compile the project.
A JavaScript project can use jsconfig.json
a file instead, which does pretty much the same thing, but enables some JavaScript-related compiler flags by default.
typescript 项目会通过 tsconfig.json
call tsc
If you are too lazy to write a configuration file, you can download the specified configuration and use the extends attribute
The current configuration files provided by the community are
Reference link:
https://github.com/tsconfig/bases/https://github.com/tsconfig/bases/
Root property configuration reference link