Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment
Installations
npm install @tsconfig/node18
Releases
Unable to fetch releases
Developer
tsconfig
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
20.11.1
NPM Version
10.2.4
Statistics
6,398 Stars
364 Commits
240 Forks
42 Watching
17 Branches
78 Contributors
Updated on 28 Nov 2024
Languages
TypeScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
35,160,409
Last day
-2.4%
123,560
Compared to previous day
Last week
3.1%
642,471
Compared to previous week
Last month
3.1%
2,719,406
Compared to previous month
Last year
173.1%
25,611,664
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
Centralized Recommendations for TSConfig bases
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.
We target the latest stable version of TypeScript, note that because we want to be consistent with the versioning the target runtime we can't always do semver releases.
Table of TSConfigs
Available TSConfigs
Recommended tsconfig.json
Install:
1npm install --save-dev @tsconfig/recommended 2yarn add --dev @tsconfig/recommended
Add to your tsconfig.json
:
1"extends": "@tsconfig/recommended/tsconfig.json"
Bun tsconfig.json
Install:
1npm install --save-dev @tsconfig/bun 2yarn add --dev @tsconfig/bun
Add to your tsconfig.json
:
1"extends": "@tsconfig/bun/tsconfig.json"
Create React App tsconfig.json
Install:
1npm install --save-dev @tsconfig/create-react-app 2yarn add --dev @tsconfig/create-react-app
Add to your tsconfig.json
:
1"extends": "@tsconfig/create-react-app/tsconfig.json"
Cypress tsconfig.json
Install:
1npm install --save-dev @tsconfig/cypress 2yarn add --dev @tsconfig/cypress
Add to your tsconfig.json
:
1"extends": "@tsconfig/cypress/tsconfig.json"
Deno tsconfig.json
Install:
1npm install --save-dev @tsconfig/deno 2yarn add --dev @tsconfig/deno
Add to your tsconfig.json
:
1"extends": "@tsconfig/deno/tsconfig.json"
Docusaurus v2 tsconfig.json
Install:
1npm install --save-dev @tsconfig/docusaurus 2yarn add --dev @tsconfig/docusaurus
Add to your tsconfig.json
:
1"extends": "@tsconfig/docusaurus/tsconfig.json"
NOTE: You may need to add
"baseUrl": "."
to yourtsconfig.json
to support proper file resolution.
Ember tsconfig.json
Install:
1npm install --save-dev @tsconfig/ember 2yarn add --dev @tsconfig/ember
Add to your tsconfig.json
:
1"extends": "@tsconfig/ember/tsconfig.json"
NOTE: You may need to add
"baseUrl": "."
to yourtsconfig.json
to support proper file resolution.
Next.js tsconfig.json
Install:
1npm install --save-dev @tsconfig/next 2yarn add --dev @tsconfig/next
Add to your tsconfig.json
:
1"extends": "@tsconfig/next/tsconfig.json"
Node LTS (22) tsconfig.json
Install:
1npm install --save-dev @tsconfig/node-lts 2yarn add --dev @tsconfig/node-lts
Add to your tsconfig.json
:
1"extends": "@tsconfig/node-lts/tsconfig.json"
Node 10 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node10 2yarn add --dev @tsconfig/node10
Add to your tsconfig.json
:
1"extends": "@tsconfig/node10/tsconfig.json"
Node 12 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node12 2yarn add --dev @tsconfig/node12
Add to your tsconfig.json
:
1"extends": "@tsconfig/node12/tsconfig.json"
Node 14 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node14 2yarn add --dev @tsconfig/node14
Add to your tsconfig.json
:
1"extends": "@tsconfig/node14/tsconfig.json"
Node 16 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node16 2yarn add --dev @tsconfig/node16
Add to your tsconfig.json
:
1"extends": "@tsconfig/node16/tsconfig.json"
Node 17 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node17 2yarn add --dev @tsconfig/node17
Add to your tsconfig.json
:
1"extends": "@tsconfig/node17/tsconfig.json"
Node 18 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node18 2yarn add --dev @tsconfig/node18
Add to your tsconfig.json
:
1"extends": "@tsconfig/node18/tsconfig.json"
Node 19 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node19 2yarn add --dev @tsconfig/node19
Add to your tsconfig.json
:
1"extends": "@tsconfig/node19/tsconfig.json"
Node 20 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node20 2yarn add --dev @tsconfig/node20
Add to your tsconfig.json
:
1"extends": "@tsconfig/node20/tsconfig.json"
Node 21 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node21 2yarn add --dev @tsconfig/node21
Add to your tsconfig.json
:
1"extends": "@tsconfig/node21/tsconfig.json"
Node 22 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node22 2yarn add --dev @tsconfig/node22
Add to your tsconfig.json
:
1"extends": "@tsconfig/node22/tsconfig.json"
Node 23 tsconfig.json
Install:
1npm install --save-dev @tsconfig/node23 2yarn add --dev @tsconfig/node23
Add to your tsconfig.json
:
1"extends": "@tsconfig/node23/tsconfig.json"
Nuxt tsconfig.json
Install:
1npm install --save-dev @tsconfig/nuxt 2yarn add --dev @tsconfig/nuxt
Add to your tsconfig.json
:
1"extends": "@tsconfig/nuxt/tsconfig.json"
NOTE: You may need to add
"baseUrl": "."
to yourtsconfig.json
to support proper file resolution.
React Native tsconfig.json
Install:
1npm install --save-dev @tsconfig/react-native 2yarn add --dev @tsconfig/react-native
Add to your tsconfig.json
:
1"extends": "@tsconfig/react-native/tsconfig.json"
Remix tsconfig.json
Install:
1npm install --save-dev @tsconfig/remix 2yarn add --dev @tsconfig/remix
Add to your tsconfig.json
:
1"extends": "@tsconfig/remix/tsconfig.json"
NOTE: You may need to add
"baseUrl": "."
to yourtsconfig.json
to support proper file resolution.
Strictest tsconfig.json
Install:
1npm install --save-dev @tsconfig/strictest 2yarn add --dev @tsconfig/strictest
Add to your tsconfig.json
:
1"extends": "@tsconfig/strictest/tsconfig.json"
Svelte tsconfig.json
Install:
1npm install --save-dev @tsconfig/svelte 2yarn add --dev @tsconfig/svelte
Add to your tsconfig.json
:
1"extends": "@tsconfig/svelte/tsconfig.json"
NOTE: After
@tsconfig/svelte@2.0.0
, you should add/// <reference types="svelte" />
to ad.ts
or aindex.ts
(entry) file to prevent typescript error.
Taro tsconfig.json
Install:
1npm install --save-dev @tsconfig/taro 2yarn add --dev @tsconfig/taro
Add to your tsconfig.json
:
1"extends": "@tsconfig/taro/tsconfig.json"
Vite React tsconfig.json
Install:
1npm install --save-dev @tsconfig/vite-react 2yarn add --dev @tsconfig/vite-react
Add to your tsconfig.json
:
1"extends": "@tsconfig/vite-react/tsconfig.json"
What about combined configs?
Because of previous limitations in the config extension system of TypeScript, this repo used to provide combined configs from a few common bases (like Node + ESM, Node + Strictest and so on).
This issue is now moot since TypeScript v5.0.0, which provides the ability to
extend from multiple configs at once. For instance, if you want
to start from a Node 18 + Strictest base config, you can install both
@tsconfig/node18
and @tsconfig/strictest
packages and extend those configs like so:
1// tsconfig.json 2{ 3 "extends": ["@tsconfig/strictest/tsconfig", "@tsconfig/node18/tsconfig"] 4}
You can see the result of the combined configs via tsc --showConfig
.
What about @tsconfig/esm
?
We deprecated it in favour of setting module/moduleResolution to node/bundler.
Contributing
1git clone https://github.com/tsconfig/bases.git tsconfig-bases 2cd tsconfig-bases
Then 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:
1deno run --allow-read --allow-run --allow-env --allow-write --allow-net scripts/generate-recommend.ts
Developing
Create a set of npm packages via:
1deno run --allow-read --allow-write --allow-net scripts/create-npm-packages.ts
You can inspect them in the packages/
folder, then they are deployed by passing in the paths to the base files via stdin:
1deno run --allow-read --allow-run --allow-env --allow-net scripts/deploy-changed-npm-packages.ts
The 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.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
0 existing vulnerabilities detected
Reason
Found 10/11 approved changesets -- score normalized to 9
Reason
7 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/tsconfig/bases/CI.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/tsconfig/bases/CI.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/tsconfig/bases/deploy.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/tsconfig/bases/deploy.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/tsconfig/bases/deploy.yml/main?enable=pin
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/CI.yml:1
- Warn: no topLevel permission defined: .github/workflows/deploy.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 29 are checked with a SAST tool
Score
5.4
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More