This packages provides a base TypeScript configuration depending on the JavaScript runtime environment which you intend to run your code in. These are tsconfig.json files which your project extends from which simplifies your tsconfig.json by handling the runtime support.
Install the package.
With npm
npm i --save-dev @sharegate/typescript-config
With yarn
yarn add --dev @sharegate/typescript-config
To start, create a tsconfig.json in the root of your project.
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/cra.json",
"compilerOptions": {
"baseUrl": ".",
},
"include": ["src"],
"exclude": ["node_modules"]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
},
"include": ["src"],
"exclude": ["node_modules"]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/react-library.json",
"compilerOptions": {
"baseUrl": ".",
},
"include": ["src"],
"exclude": ["node_modules"]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/react.json",
"compilerOptions": {
"baseUrl": ".",
}
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/library.json",
"compilerOptions": {
}
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@sharegate/typescript-config/base.json",
"compilerOptions": {
}
}
Copyright © 2023, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/workleap/gsoft-license/blob/master/LICENSE.