Hosts TSConfigs for you to extend in your apps, tuned to a particular runtime environment. Owned and improved by the community. Basically Definitely Typed for TSConfigs.
Recommended tsconfig.json
Install:
npm install --save-dev @tsconfig/recommended
yarn add --dev @tsconfig/recommendedAdd to your tsconfig.json:
"extends": "@tsconfig/recommended/tsconfig.json"Create React App tsconfig.json
Install:
npm install --save-dev @tsconfig/create-react-app
yarn add --dev @tsconfig/create-react-appAdd to your tsconfig.json:
"extends": "@tsconfig/create-react-app/tsconfig.json"Cypress tsconfig.json
Install:
npm install --save-dev @tsconfig/cypress
yarn add --dev @tsconfig/cypressAdd to your tsconfig.json:
"extends": "@tsconfig/cypress/tsconfig.json"Deno tsconfig.json
Install:
npm install --save-dev @tsconfig/deno
yarn add --dev @tsconfig/denoAdd to your tsconfig.json:
"extends": "@tsconfig/deno/tsconfig.json"Docusaurus v2 tsconfig.json
Install:
npm install --save-dev @tsconfig/docusaurus
yarn add --dev @tsconfig/docusaurusAdd to your tsconfig.json:
"extends": "@tsconfig/docusaurus/tsconfig.json"Next.js tsconfig.json
Install:
npm install --save-dev @tsconfig/next
yarn add --dev @tsconfig/nextAdd to your tsconfig.json:
"extends": "@tsconfig/next/tsconfig.json"Node 10 tsconfig.json
Install:
npm install --save-dev @tsconfig/node10
yarn add --dev @tsconfig/node10Add to your tsconfig.json:
"extends": "@tsconfig/node10/tsconfig.json"Node 12 tsconfig.json
Install:
npm install --save-dev @tsconfig/node12
yarn add --dev @tsconfig/node12Add to your tsconfig.json:
"extends": "@tsconfig/node12/tsconfig.json"Node 14 tsconfig.json
Install:
npm install --save-dev @tsconfig/node14
yarn add --dev @tsconfig/node14Add to your tsconfig.json:
"extends": "@tsconfig/node14/tsconfig.json"Node 16 tsconfig.json
Install:
npm install --save-dev @tsconfig/node16
yarn add --dev @tsconfig/node16Add to your tsconfig.json:
"extends": "@tsconfig/node16/tsconfig.json"Nuxt tsconfig.json
Install:
npm install --save-dev @tsconfig/nuxt
yarn add --dev @tsconfig/nuxtAdd to your tsconfig.json:
"extends": "@tsconfig/nuxt/tsconfig.json"React Native tsconfig.json
Install:
npm install --save-dev @tsconfig/react-native
yarn add --dev @tsconfig/react-nativeAdd to your tsconfig.json:
"extends": "@tsconfig/react-native/tsconfig.json"Svelte tsconfig.json
Install:
npm install --save-dev @tsconfig/svelte
yarn add --dev @tsconfig/svelteAdd to your tsconfig.json:
"extends": "@tsconfig/svelte/tsconfig.json"git clone https://github.com/tsconfig/bases.git tsconfig-bases
cd tsconfig-basesThen edit the tsconfig.json files in bases/.
Every morning there is a GitHub Action which deploys any changed bases.
To generate the recommended TSConfig which is generated via tsc --init, run:
deno run --allow-read --allow-run --allow-env --allow-write --allow-net scripts/generate-recommend.tsCreate a set of npm packages via:
deno run --allow-read --allow-write --allow-net scripts/create-npm-packages.tsYou can inspect them in the packages/ folder, then they are deployed by passing in the paths to the base files via stdin:
deno run --allow-read --allow-run --allow-env --allow-net scripts/deploy-changed-npm-packages.tsThe rest of the files in this repo are for deploying, which uses Deno 1.0.
If you add a new json file, please run deno run --allow-read --allow-write scripts/update-markdown-readme.ts to update the README.