Common TypeScript configuration
TypeScript >= 5 is required.
Install from npm
npm i --save-dev @tinkoff/typescript-config
Install tsconfig for you application type: @tsconfig/node18
for your Node.js v18 application or @tsconfig/create-react-app
for CRA application.
See full lest https://github.com/tsconfig/bases.
npm i --save-dev @tsconfig/node16
# or
npm i --save-dev @tsconfig/node18
# or
npm i --save-dev @tsconfig/create-react-app
Create tsconfig.json
at the project root
{
"extends": ["@tinkoff/typescript-config/tsconfig.base", "@tsconfig/node18/tsconfig"]
}