Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tsconfig/bases
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5ee68ffc8325546335649525a3553067d2d27830
Choose a base ref
...
head repository: tsconfig/bases
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b02260d1a0e4228dc659c7294789e73afa02f43b
Choose a head ref

Commits on Aug 24, 2023

  1. Enable isolatedModules on bases/strictest.json

    Signed-off-by: Sora Morimoto <sora@morimoto.io>
    smorimoto committed Aug 24, 2023
    Copy the full SHA
    081c7a2 View commit details

Commits on Aug 29, 2023

  1. Merge pull request #214 from smorimoto/strictest-isolated-modules

    Enable `isolatedModules` on `bases/strictest.json`
    orta authored Aug 29, 2023
    1
    Copy the full SHA
    031273b View commit details

Commits on Sep 15, 2023

  1. Copy the full SHA
    00cc7c8 View commit details
  2. Copy the full SHA
    eeb4dc4 View commit details
  3. Merge pull request #221 from BurakTaner/chore/fix-naming-inconsistency

    Chore/fix naming inconsistency
    orta authored Sep 15, 2023
    1
    Copy the full SHA
    a1bf7c0 View commit details

Commits on Oct 7, 2023

  1. 1
    Copy the full SHA
    8c9ae60 View commit details

Commits on Oct 23, 2023

  1. Copy the full SHA
    aacda43 View commit details

Commits on Oct 26, 2023

  1. Merge pull request #230 from NullVoxPopuli/patch-1

    Ember: set verbatimModuleSyntax: true
    chriskrycho authored Oct 26, 2023
    1
    Copy the full SHA
    b9e1a07 View commit details

Commits on Nov 5, 2023

  1. Support Node 21

    hyperupcall committed Nov 5, 2023
    Copy the full SHA
    a4db74a View commit details

Commits on Nov 6, 2023

  1. Set target to es2022

    hyperupcall authored Nov 6, 2023
    Copy the full SHA
    6d8fe27 View commit details

Commits on Nov 9, 2023

  1. Merge pull request #234 from fox-forks/hyperupcall-node21

    Support Node 21
    orta authored Nov 9, 2023
    1
    Copy the full SHA
    84f659b View commit details

Commits on Nov 13, 2023

  1. Copy the full SHA
    648e26a View commit details

Commits on Dec 3, 2023

  1. Copy the full SHA
    84c7f20 View commit details
  2. Copy the full SHA
    1ab4762 View commit details
  3. Update LTS to Node 20

    einhund committed Dec 3, 2023
    Copy the full SHA
    07ade54 View commit details

Commits on Dec 11, 2023

  1. Update vite-react.json

    mgcrea authored Dec 11, 2023
    Copy the full SHA
    b06311b View commit details
  2. Merge pull request #239 from mgcrea/patch-1

    Update vite-react.json
    orta authored Dec 11, 2023
    1
    Copy the full SHA
    22f9047 View commit details
  3. Merge pull request #238 from einhund/update-lts

    Update LTS to Node 20
    orta authored Dec 11, 2023
    1
    Copy the full SHA
    c573e32 View commit details
  4. Merge pull request #236 from fox-forks/hyperupcall-add-toc

    readme: Add table of contents
    orta authored Dec 11, 2023
    1
    Copy the full SHA
    b734f77 View commit details

Commits on Dec 19, 2023

  1. Update README.md

    Fix the Nextjs link
    haraldkri authored Dec 19, 2023
    Copy the full SHA
    77244df View commit details
  2. Merge pull request #240 from haraldkri/patch-1

    Update README.md
    orta authored Dec 19, 2023
    1
    Copy the full SHA
    45e246d View commit details

Commits on Dec 24, 2023

  1. chore: remove bun-types

    With bun `1.0.19`, types now lives in `@types`, removing the need
    for `bun-types`.
    jbergstroem committed Dec 24, 2023
    1
    Copy the full SHA
    7d411d7 View commit details

Commits on Jan 19, 2024

  1. Copy the full SHA
    5c463da View commit details
  2. Copy the full SHA
    cee0d79 View commit details
  3. Merge pull request #245 from friederbluemle/update-rn-exclude

    Remove ineffective exclude list from react-native
    orta authored Jan 19, 2024
    Copy the full SHA
    4d9a70f View commit details

Commits on Feb 1, 2024

  1. Copy the full SHA
    c5b4455 View commit details

Commits on Feb 4, 2024

  1. Merge pull request #248 from fox-forks/hyperupcall-baseurl

    Add `baseUrl` notices to readme
    orta authored Feb 4, 2024
    Copy the full SHA
    811b956 View commit details
  2. Merge pull request #242 from jbergstroem/feat/bun-types

    chore: remove `bun-types` (in favor of `@types/bun`)
    orta authored Feb 4, 2024
    Copy the full SHA
    bb30eb3 View commit details

Commits on Feb 17, 2024

  1. Copy the full SHA
    a3cd6d2 View commit details

Commits on Feb 20, 2024

  1. Merge pull request #252 from risu729/main

    Update @tsconfig/bun to reflect changes on bun docs
    orta authored Feb 20, 2024
    1
    Copy the full SHA
    67f2ec1 View commit details
  2. Update README.md

    fixed typo
    matthias-m authored Feb 20, 2024
    Copy the full SHA
    4175a57 View commit details
  3. Merge pull request #253 from matthias-m/patch-1

    Update README.md
    orta authored Feb 20, 2024
    Copy the full SHA
    5811231 View commit details

Commits on Feb 26, 2024

  1. Copy the full SHA
    1b9161d View commit details
  2. Copy the full SHA
    8fee712 View commit details

Commits on Mar 22, 2024

  1. Copy the full SHA
    f5c8ff2 View commit details
  2. Copy the full SHA
    ebe629c View commit details

Commits on Mar 23, 2024

  1. Merge pull request #260 from zanminkian/zmj/forceConsistentCasingInFi…

    …leNames
    
    Remove `forceConsistentCasingInFileNames`
    orta authored Mar 23, 2024
    Copy the full SHA
    4ace9bf View commit details
  2. Merge pull request #259 from zanminkian/zmj/recommended

    Set recommended target to `es2016`
    orta authored Mar 23, 2024
    Copy the full SHA
    b02260d View commit details
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.log
packages/
.idea/
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,37 @@
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 versions 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.
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

| Name | Package |
| -------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [Recommended](#recommended-tsconfigjson) | [`@tsconfig/recommended`](https://npmjs.com/package/@tsconfig/recommended) |
| [Bun](#bun-tsconfigjson) | [`@tsconfig/bun`](https://npmjs.com/package/@tsconfig/bun) |
| [Create React App](#create-react-app-tsconfigjson) | [`@tsconfig/create-react-app`](https://npmjs.com/package/@tsconfig/create-react-app) |
| [Cypress](#cypress-tsconfigjson) | [`@tsconfig/cypress`](https://npmjs.com/package/@tsconfig/cypress) |
| [Deno](#deno-tsconfigjson) | [`@tsconfig/deno`](https://npmjs.com/package/@tsconfig/deno) |
| [Docusaurus v2](#docusaurus-v2-tsconfigjson) | [`@tsconfig/docusaurus`](https://npmjs.com/package/@tsconfig/docusaurus) |
| [Ember](#ember-tsconfigjson) | [`@tsconfig/ember`](https://npmjs.com/package/@tsconfig/ember) |
| [Next.js](#nextjs-tsconfigjson) | [`@tsconfig/next`](https://npmjs.com/package/@tsconfig/next) |
| [Node LTS](#node-lts-tsconfigjson) | [`@tsconfig/node-lts`](https://npmjs.com/package/@tsconfig/node-lts) |
| [Node 10](#node-10-tsconfigjson) | [`@tsconfig/node10`](https://npmjs.com/package/@tsconfig/node10) |
| [Node 12](#node-12-tsconfigjson) | [`@tsconfig/node12`](https://npmjs.com/package/@tsconfig/node12) |
| [Node 14](#node-14-tsconfigjson) | [`@tsconfig/node14`](https://npmjs.com/package/@tsconfig/node14) |
| [Node 16](#node-16-tsconfigjson) | [`@tsconfig/node16`](https://npmjs.com/package/@tsconfig/node16) |
| [Node 17](#node-17-tsconfigjson) | [`@tsconfig/node17`](https://npmjs.com/package/@tsconfig/node17) |
| [Node 18](#node-18-tsconfigjson) | [`@tsconfig/node18`](https://npmjs.com/package/@tsconfig/node18) |
| [Node 19](#node-19-tsconfigjson) | [`@tsconfig/node19`](https://npmjs.com/package/@tsconfig/node19) |
| [Node 20](#node-20-tsconfigjson) | [`@tsconfig/node20`](https://npmjs.com/package/@tsconfig/node20) |
| [Node 21](#node-21-tsconfigjson) | [`@tsconfig/node21`](https://npmjs.com/package/@tsconfig/node21) |
| [Nuxt](#nuxt-tsconfigjson) | [`@tsconfig/nuxt`](https://npmjs.com/package/@tsconfig/nuxt) |
| [React Native](#react-native-tsconfigjson) | [`@tsconfig/react-native`](https://npmjs.com/package/@tsconfig/react-native) |
| [Remix](#remix-tsconfigjson) | [`@tsconfig/remix`](https://npmjs.com/package/@tsconfig/remix) |
| [Strictest](#strictest-tsconfigjson) | [`@tsconfig/strictest`](https://npmjs.com/package/@tsconfig/strictest) |
| [Svelte](#svelte-tsconfigjson) | [`@tsconfig/svelte`](https://npmjs.com/package/@tsconfig/svelte) |
| [Taro](#taro-tsconfigjson) | [`@tsconfig/taro`](https://npmjs.com/package/@tsconfig/taro) |
| [Vite React](#vite-react-tsconfigjson) | [`@tsconfig/vite-react`](https://npmjs.com/package/@tsconfig/vite-react) |

### Available TSConfigs

@@ -92,6 +122,8 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/docusaurus/tsconfig.json"
```

> **NOTE**: You may need to add `"baseUrl": "."` to your `tsconfig.json` to support proper file resolution.
### Ember <kbd><a href="./bases/ember.json">tsconfig.json</a></kbd>
Install:
@@ -106,6 +138,8 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/ember/tsconfig.json"
```

> **NOTE**: You may need to add `"baseUrl": "."` to your `tsconfig.json` to support proper file resolution.
### Next.js <kbd><a href="./bases/next.json">tsconfig.json</a></kbd>
Install:
@@ -246,6 +280,20 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node20/tsconfig.json"
```
### Node 21 <kbd><a href="./bases/node21.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node21
yarn add --dev @tsconfig/node21
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node21/tsconfig.json"
```
### Nuxt <kbd><a href="./bases/nuxt.json">tsconfig.json</a></kbd>

Install:
@@ -260,6 +308,8 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/nuxt/tsconfig.json"
```

> **NOTE**: You may need to add `"baseUrl": "."` to your `tsconfig.json` to support proper file resolution.
### React Native <kbd><a href="./bases/react-native.json">tsconfig.json</a></kbd>
Install:
@@ -288,6 +338,8 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/remix/tsconfig.json"
```

> **NOTE**: You may need to add `"baseUrl": "."` to your `tsconfig.json` to support proper file resolution.
### Strictest <kbd><a href="./bases/strictest.json">tsconfig.json</a></kbd>
Install:
40 changes: 19 additions & 21 deletions bases/bun.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
{
// This is based on https://bun.sh/docs/runtime/typescript#recommended-compileroptions
// This is based on https://bun.sh/docs/typescript#suggested-compileroptions
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Bun",
"docs": "https://bun.sh/docs/runtime/typescript",
"docs": "https://bun.sh/docs/typescript",

"compilerOptions": {
// add Bun type definitions
"types": [
"bun-types"
],

// enable latest features
"lib": [
"ESNext"
],
"module": "ESNext",
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

// if TS 5.x+
// Bundler mode
"moduleResolution": "bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleDetection": "force",

// support JSX
"jsx": "react-jsx",
"verbatimModuleSyntax": true,
"noEmit": true,

// best practices
// Best practices
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags
"noUnusedLocals": true,
"noUnusedParameters": true,
"noPropertyAccessFromIndexSignature": true
}
}
1 change: 0 additions & 1 deletion bases/create-react-app.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"noEmit": true,
2 changes: 1 addition & 1 deletion bases/docusaurus.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"allowJs": true,
"esModuleInterop": true,
"jsx": "react",
"lib": ["DOM"],
"lib": ["dom"],
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
17 changes: 12 additions & 5 deletions bases/ember.json
Original file line number Diff line number Diff line change
@@ -8,10 +8,14 @@
// via Ember CLI (e.g. ember-cli-typescript's blueprint), it additionally has
// `compilerOptions.baseUrl`, `compilerOptions.paths`, and `include` set.
"compilerOptions": {
"target": "ES2021",
"target": "es2021",
"module": "esnext",
"moduleResolution": "bundler",

// We don't want to include types dependencies in our compiled output, so tell TypeScript
// to enforce using `import type` instead of `import` for Types.
"verbatimModuleSyntax": true,

// Trying to check Ember apps and addons with `allowJs: true` is a recipe
// for many unresolveable type errors, because with *considerable* extra
// configuration it ends up including many files which are *not* valid and
@@ -44,10 +48,13 @@
"noPropertyAccessFromIndexSignature": true,

// --- Compilation/integration settings
// Setting `noEmitOnError` here allows ember-cli-typescript to catch errors
// and inject them into Ember CLI's build error reporting, which provides
// nice feedback for when
"noEmitOnError": true,
// Setting `noEmitOnError` here allows tools trying to respect the tsconfig
// to still emit code without breaking on errors.
// Errors are still reported in the CLI when running `tsc` or `glint`,
// but the errors won't prevent code from being emitted.
// This helps hasten development by allowing devs to prototype before coming
// to a decision on what they want their types to be.
"noEmitOnError": false,

// We use Babel for emitting runtime code, because it's very important that
// we always and only use the same transpiler for non-stable features, in
12 changes: 0 additions & 12 deletions bases/esm.json

This file was deleted.

1 change: 0 additions & 1 deletion bases/next.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
9 changes: 5 additions & 4 deletions bases/node-lts.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
// This file was autogenerated by a script
// Equivalent to a config of: node18
// Equivalent to a config of: node20
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node LTS",
"_version": "18.1.0",
"_version": "20.1.0",
"compilerOptions": {
"lib": ["es2023"],
"lib": [
"es2023"
],
"module": "node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
1 change: 0 additions & 1 deletion bases/node10.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
}
1 change: 0 additions & 1 deletion bases/node12.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
1 change: 0 additions & 1 deletion bases/node14.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
1 change: 0 additions & 1 deletion bases/node16.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
1 change: 0 additions & 1 deletion bases/node17.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
"moduleResolution": "node16"
}
1 change: 0 additions & 1 deletion bases/node18.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
3 changes: 1 addition & 2 deletions bases/node19.json
Original file line number Diff line number Diff line change
@@ -6,13 +6,12 @@

"compilerOptions": {
"lib": ["es2023"],
"module": "Node16",
"module": "node16",
"target": "es2022",

"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
1 change: 0 additions & 1 deletion bases/node20.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}
16 changes: 16 additions & 0 deletions bases/node21.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 21",
"_version": "21.0.0",

"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",

"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16"
}
}
10 changes: 5 additions & 5 deletions bases/nuxt.json
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@
"_version": "2.0.0",

"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler",
"lib": [
"ESNext",
"ESNext.AsyncIterable",
"DOM"
"esnext",
"esnext.asynciterable",
"dom"
],
"esModuleInterop": true,
"allowJs": true,
9 changes: 1 addition & 8 deletions bases/react-native.json
Original file line number Diff line number Diff line change
@@ -29,14 +29,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": false,
"esModuleInterop": true,
"skipLibCheck": true
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
]
}
}
2 changes: 1 addition & 1 deletion bases/recommended.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2015",
"target": "es2016",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
5 changes: 2 additions & 3 deletions bases/remix.json
Original file line number Diff line number Diff line change
@@ -4,17 +4,16 @@
"_version": "2.0.0",

"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"lib": ["dom", "dom.iterable", "es2019"],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"target": "ES2019",
"target": "es2019",
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
Loading