Skip to content

Commit 486c327

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/for-of-iteration-optional-tuple-members
2 parents 0682323 + b33d372 commit 486c327

File tree

33,593 files changed

+2875406
-787918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

33,593 files changed

+2875406
-787918
lines changed

.c8rc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"reporter": ["lcovonly", "cobertura"],
2+
"reporter": ["lcovonly", "cobertura", "v8", "v8-json", "codecov"],
33
"src": "src",
44
"include": ["src/**", "built/local/**"],
55
"exclude": ["**/node_modules/**"],
66
"mergeAsync": true
7-
}
7+
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
13
{
24
"name": "Node.js",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
"VARIANT": "18"
7-
}
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers/features/go:1": {}
11+
},
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
15+
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": {
18+
"Configure Build Tools": "sudo corepack enable npm; sudo npm install -g hereby; npm ci",
19+
"Install pprof": "go install github.com/google/pprof@latest",
20+
"Install Graphviz": "sudo apt install graphviz"
821
},
22+
23+
// Configure tool-specific properties.
924
"customizations": {
1025
"vscode": {
1126
"settings": {
@@ -23,5 +38,7 @@
2338
]
2439
}
2540
},
41+
42+
// More info: https://aka.ms/dev-containers-non-root.
2643
"remoteUser": "node"
2744
}

.dprint.jsonc

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
// If updating this, also update the config in dtsBundler.mjs.
23
"indentWidth": 4,
34
"lineWidth": 1000,
45
"newLineKind": "auto",
@@ -19,26 +20,25 @@
1920
"arrowFunction.useParentheses": "preferNone",
2021
"conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals.
2122
"functionExpression.spaceAfterFunctionKeyword": true,
22-
"importDeclaration.forceMultiLine": true,
23+
"importDeclaration.forceMultiLine": "whenMultiple",
2324
"constructorType.spaceAfterNewKeyword": true,
2425
"constructSignature.spaceAfterNewKeyword": true,
2526

26-
// Let eslint-plugin-simple-import-sort handle this.
27-
"module.sortImportDeclarations": "maintain",
28-
"module.sortExportDeclarations": "maintain",
29-
"exportDeclaration.sortNamedExports": "maintain",
30-
"importDeclaration.sortNamedImports": "maintain"
27+
"module.sortImportDeclarations": "caseInsensitive",
28+
"module.sortExportDeclarations": "caseInsensitive",
29+
"exportDeclaration.sortNamedExports": "caseInsensitive",
30+
"importDeclaration.sortNamedImports": "caseInsensitive"
3131
},
32-
"prettier": {
33-
"associations": [
34-
"**/*.{yaml,yml}"
35-
],
36-
"yml.tabWidth": 2,
37-
"yaml.tabWidth": 2,
38-
"yml.singleQuote": true,
39-
"yaml.singleQuote": true
32+
"yaml": {
33+
"indentWidth": 2,
34+
"quotes": "preferSingle"
35+
},
36+
"json": {
37+
// This would be good to do in known-JSONC files, but VS Code warns on trailing commas.
38+
"trailingCommas": "never"
4039
},
4140
"excludes": [
41+
"**/.git",
4242
"**/node_modules",
4343
"**/*-lock.json",
4444
"coverage/**",
@@ -47,10 +47,14 @@
4747
"tests/**",
4848
"internal/**",
4949
"**/*.generated.*",
50-
"scripts/*.d.*"
50+
"scripts/*.d.*",
51+
"**/_namespaces/**"
5152
],
53+
// Note: if adding new languages, make sure settings.template.json is updated too.
54+
// Also, if updating typescript, update the one in package.json.
5255
"plugins": [
53-
"https://plugins.dprint.dev/typescript-0.86.1.wasm",
54-
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
56+
"https://plugins.dprint.dev/typescript-0.93.4.wasm",
57+
"https://plugins.dprint.dev/json-0.19.4.wasm",
58+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
5559
]
5660
}

.eslintplugin.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 167 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ description: 'Create a report to help us improve TypeScript'
33
body:
44
- type: markdown
55
attributes:
6-
value: Please fill in each section completely. Thank you!
6+
value: |
7+
🔍 Please [search thoroughly in GitHub](https://github.com/Microsoft/TypeScript/search?type=Issues) or by the query `site:github.com/microsoft/TypeScript <your keywords>` in your favorite search engine before reporting a new bug as most bugs are very likely to find precedents.
8+
9+
Please fill in each section completely. Thank you!
710
- type: textarea
811
id: search_terms
912
attributes:
@@ -13,8 +16,7 @@ body:
1316
1417
List them here so people in the future can find this one more easily.
1518
placeholder: |
16-
List of keywords you searched for before creating this issue.
17-
Write them down here so that others can find this bug more easily and help provide feedback.
19+
List of keywords you searched for before creating this issue. Write them down here so that others can find this bug more easily and help provide feedback.
1820
1921
e.g. "function inference any", "jsx attribute spread", "move to file duplicate imports", "discriminated union inference", "ts2822"
2022
validations:
@@ -26,21 +28,18 @@ body:
2628
description: |
2729
When did you start seeing this bug occur?
2830
29-
"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
30-
https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs
31-
32-
33-
If possible, please try testing the nightly version of TS to see if it's already been fixed. For npm: `typescript@next`
31+
"Bugs" that have existed in TS for a long time are very likely to be FAQs; please refer to the [FAQ wiki page](https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs).
3432
35-
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
33+
Please try the nightly version of TS to see if it's already been fixed. Install `typescript@next` or use the [Playground](http://www.typescriptlang.org/play/?ts=Nightly).
3634
35+
If possible, try bisecting the issue using [every-ts](https://www.npmjs.com/package/every-ts#bisecting), which should narrow down the problem to a specific change.
3736
38-
Note: The TypeScript Playground can be used to try older versions of TypeScript.
37+
The Playground also supports versions of TypeScript back to TypeScript 3.3.
3938
4039
Please keep and fill in the line that best applies.
4140
value: |
42-
- This is a crash
4341
- This changed between versions ______ and _______
42+
- This changed in commit or PR _______
4443
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
4544
- I was unable to test this on prior versions because _______
4645
validations:
@@ -54,7 +53,6 @@ body:
5453
5554
This should have the same code as the code snippet below, and use whichever settings are relevant to your report.
5655
57-
5856
As a last resort, you can link to a repo, but these will be slower for us to investigate.
5957
placeholder: 'Playground link with relevant code: https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA'
6058
validations:
@@ -65,6 +63,7 @@ body:
6563
label: 💻 Code
6664
description: |
6765
Please post the relevant code sample here as well.
66+
6867
This code and the Playground code should be the same, do not use separate examples.
6968
7069
We can quickly address your report if:
@@ -74,6 +73,7 @@ body:
7473
- The incorrectness of the behavior is readily apparent from reading the sample.
7574
7675
Reports are slower to investigate if:
76+
7777
- We have to pare too much extraneous code.
7878
- We have to clone a large repo and validate that the problem isn't elsewhere.
7979
- The sample is confusing or doesn't clearly demonstrate what's wrong.

0 commit comments

Comments
 (0)