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: 821d9aa0b2e075949b6764c1e4556f83ab7554a9
Choose a base ref
...
head repository: tsconfig/bases
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4c413cf67dc0ff3c7511dc616a34f7538e83a255
Choose a head ref
  • 19 commits
  • 12 files changed
  • 9 contributors

Commits on Apr 20, 2023

  1. Move verbatimModuleSyntax from strictest to ESM

    Luka Prebil Grintal authored Apr 20, 2023
    Copy the full SHA
    f674fa6 View commit details
  2. Merge pull request #175 from LukaPrebil/#168-move-verbatimModuleSynta…

    …x-from-strictest-to-esm
    
    Move `verbatimModuleSyntax` from strictest to ESM
    orta authored Apr 20, 2023
    1
    Copy the full SHA
    67905a4 View commit details

Commits on Apr 21, 2023

  1. Copy the full SHA
    9a2d72d View commit details
  2. Copy the full SHA
    14dcd67 View commit details
  3. Merge pull request #176 from RobinTail/node19-base

    Node19 base
    orta authored Apr 21, 2023
    1
    Copy the full SHA
    3b80405 View commit details
  4. Copy the full SHA
    9627b56 View commit details
  5. Copy the full SHA
    8f3f1bc View commit details
  6. Merge pull request #177 from steffen-4s1/patch-1

    Add "tsc --showConfig" command to combine section in readme
    orta authored Apr 21, 2023
    1
    Copy the full SHA
    41a0841 View commit details

Commits on Apr 22, 2023

  1. Merge pull request #178 from RobinTail/node19-v2

    Node 19 base v2
    orta authored Apr 22, 2023
    1
    Copy the full SHA
    84f3d68 View commit details

Commits on May 2, 2023

  1. Copy the full SHA
    630f30e View commit details

Commits on May 5, 2023

  1. Merge pull request #181 from tri-star/update-nuxt-config

    Update nuxt.json: Add .nuxt, dist to "exclude" to match create-nuxt-app.
    orta authored May 5, 2023
    1
    Copy the full SHA
    08f67df View commit details

Commits on May 9, 2023

  1. Copy the full SHA
    97103a0 View commit details
  2. Update vite-react.json

    orta authored May 9, 2023
    Copy the full SHA
    63b78fd View commit details
  3. Merge pull request #186 from MatthijsKok/main

    Use `moduleResolution: bundler` for Vite React
    orta authored May 9, 2023
    1
    Copy the full SHA
    b819caf View commit details
  4. Copy the full SHA
    47d3c29 View commit details

Commits on May 10, 2023

  1. [react-native] moduleResolution: "nodenext".

    This lets TypeScript do ESM style resolution with export maps.
    
    It requires TS 4.7, but our template has shipped with 4.8, so it's probably fine to let the repo do it's normal patch bump?
    
    When we can target 5.0 we should maybe consider changing it to `moduleResolution: "bundler"`.
    NickGerleman authored May 10, 2023
    5
    Copy the full SHA
    e2fbea2 View commit details
  2. Copy the full SHA
    5b4e858 View commit details
  3. Merge pull request #188 from tsconfig/NickGerleman-rn-export-maps

    [react-native] `moduleResolution: "nodenext"`
    NickGerleman authored May 10, 2023
    1
    Copy the full SHA
    3bdac9b View commit details

Commits on May 11, 2023

  1. Merge pull request #187 from TatsuyaYamamoto/module-node16

    Use `module: node16` for Node.js 16+
    orta authored May 11, 2023
    1
    Copy the full SHA
    4c413cf View commit details
Showing with 51 additions and 13 deletions.
  1. +16 −0 README.md
  2. +3 −1 bases/esm.json
  3. +2 −2 bases/node-lts.json
  4. +1 −1 bases/node16.json
  5. +1 −1 bases/node17.json
  6. +1 −1 bases/node18.json
  7. +18 −0 bases/node19.json
  8. +1 −1 bases/node20.json
  9. +3 −1 bases/nuxt.json
  10. +3 −3 bases/react-native.json
  11. +0 −1 bases/strictest.json
  12. +2 −1 bases/vite-react.json
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -216,6 +216,20 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node18/tsconfig.json"
```
### Node 19 <kbd><a href="./bases/node19.json">tsconfig.json</a></kbd>

Install:

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

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node19/tsconfig.json"
```
### Node 20 <kbd><a href="./bases/node20.json">tsconfig.json</a></kbd>

Install:
@@ -351,6 +365,8 @@ to start from a Node 18 + Strictest base config, you can install both
}
```

You can see the result of the combined configs via `tsc --showConfig`.

### Contributing

```sh
4 changes: 3 additions & 1 deletion bases/esm.json
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@
"display": "ESM",

"compilerOptions": {
"module": "es2022"
"module": "es2022",

"verbatimModuleSyntax": true
}
}
4 changes: 2 additions & 2 deletions bases/node-lts.json
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@
"lib": [
"es2022"
],
"module": "commonjs",
"module": "Node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
}
}
2 changes: 1 addition & 1 deletion bases/node16.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

"compilerOptions": {
"lib": ["es2021"],
"module": "commonjs",
"module": "Node16",
"target": "es2021",

"strict": true,
2 changes: 1 addition & 1 deletion bases/node17.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

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

"strict": true,
2 changes: 1 addition & 1 deletion bases/node18.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

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

"strict": true,
18 changes: 18 additions & 0 deletions bases/node19.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 19",

"_version": "2.0.0",

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

"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
}
2 changes: 1 addition & 1 deletion bases/node20.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

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

"strict": true,
4 changes: 3 additions & 1 deletion bases/nuxt.json
Original file line number Diff line number Diff line change
@@ -31,6 +31,8 @@
]
},
"exclude": [
"node_modules"
"node_modules",
".nuxt",
"dist"
]
}
6 changes: 3 additions & 3 deletions bases/react-native.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "React Native",
"_version": "3.0.0",
"_version": "3.0.1",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
@@ -26,10 +26,10 @@
"noEmit": true,
"isolatedModules": true,
"strict": true,
"moduleResolution": "node",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"forceConsistentCasingInFileNames": false,
"esModuleInterop": true,
"skipLibCheck": true
},
1 change: 0 additions & 1 deletion bases/strictest.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,

"verbatimModuleSyntax": true,
"checkJs": true,

"esModuleInterop": true,
3 changes: 2 additions & 1 deletion bases/vite-react.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Vite React",
"_version": "2.0.0",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
@@ -12,7 +13,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,