Skip to content

Commit 254a8ce

Browse files
committed
Merge branch 'main' into intl-numberformat
2 parents ff58e75 + ee46953 commit 254a8ce

File tree

1,728 files changed

+140640
-9271
lines changed

Some content is hidden

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

1,728 files changed

+140640
-9271
lines changed

.dprint.jsonc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"importDeclaration.sortNamedImports": "maintain"
3131
},
3232
"prettier": {
33+
"newLineKind": "lf",
3334
"associations": [
3435
"**/*.{yaml,yml}"
3536
],
@@ -55,8 +56,8 @@
5556
],
5657
// Note: if adding new languages, make sure settings.template.json is updated too.
5758
"plugins": [
58-
"https://plugins.dprint.dev/typescript-0.88.3.wasm",
59-
"https://plugins.dprint.dev/json-0.19.0.wasm",
60-
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
59+
"https://plugins.dprint.dev/typescript-0.88.9.wasm",
60+
"https://plugins.dprint.dev/json-0.19.1.wasm",
61+
"https://plugins.dprint.dev/prettier-0.35.0.json@0df49c4d878bb1051af2fa1d1f69ba6400f4b78633f49baa1f38954a6fd32b40"
6162
]
6263
}
File renamed without changes.

.eslintrc.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,14 @@
105105
}
106106
}
107107
],
108-
109-
// Todo: For each of these, investigate whether we want to enable them ✨
110-
"@typescript-eslint/no-unused-vars": "off",
108+
"@typescript-eslint/no-unused-vars": [
109+
"error",
110+
{
111+
// Ignore: (solely underscores | starting with exactly one underscore)
112+
"argsIgnorePattern": "^(_+$|_[^_])",
113+
"varsIgnorePattern": "^(_+$|_[^_])"
114+
}
115+
],
111116

112117
// Pending https://github.com/typescript-eslint/typescript-eslint/issues/4820
113118
"@typescript-eslint/prefer-optional-chain": "off",

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
---
2-
blank_issues_enabled: false
3-
contact_links:
4-
- about: 'Please ask and answer usage questions on Stack Overflow.'
5-
name: Question
6-
url: 'https://stackoverflow.com/questions/tagged/typescript'
7-
- about: 'Alternatively, you can use the TypeScript Community Discord.'
8-
name: Chat
9-
url: 'https://discord.gg/typescript'
10-
- about: 'Please check the FAQ before filing new issues'
11-
name: 'TypeScript FAQ'
12-
url: 'https://github.com/microsoft/TypeScript/wiki/FAQ'
13-
- about: 'Please raise issues about the site on its own repo.'
14-
name: Website
15-
url: 'https://github.com/microsoft/TypeScript-Website/issues/new'
1+
---
2+
blank_issues_enabled: false
3+
contact_links:
4+
- about: 'Please ask and answer usage questions on Stack Overflow.'
5+
name: Question
6+
url: 'https://stackoverflow.com/questions/tagged/typescript'
7+
- about: 'Alternatively, you can use the TypeScript Community Discord.'
8+
name: Chat
9+
url: 'https://discord.gg/typescript'
10+
- about: 'Please check the FAQ before filing new issues'
11+
name: 'TypeScript FAQ'
12+
url: 'https://github.com/microsoft/TypeScript/wiki/FAQ'
13+
- about: 'Please raise issues about the site on its own repo.'
14+
name: Website
15+
url: 'https://github.com/microsoft/TypeScript-Website/issues/new'

.github/workflows/accept-baselines-fix-lints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2121
with:
2222
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
23-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
23+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
2424

2525
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
2626
run: |

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4343
- name: Use node version ${{ matrix.node-version }}
44-
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
44+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747
check-latest: true
@@ -56,7 +56,7 @@ jobs:
5656

5757
steps:
5858
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
59-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
59+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
6060
with:
6161
node-version: '*'
6262
check-latest: true
@@ -70,13 +70,13 @@ jobs:
7070

7171
steps:
7272
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
73-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
73+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
7474
with:
7575
node-version: '*'
7676
check-latest: true
7777
- run: npm ci
7878

79-
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
79+
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
8080
with:
8181
path: ~/.cache/dprint
8282
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
@@ -91,7 +91,7 @@ jobs:
9191

9292
steps:
9393
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
94-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
94+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
9595
with:
9696
node-version: '*'
9797
check-latest: true
@@ -108,7 +108,7 @@ jobs:
108108

109109
steps:
110110
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
111-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
111+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
112112
with:
113113
node-version: '*'
114114
check-latest: true
@@ -123,7 +123,7 @@ jobs:
123123
steps:
124124
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125125

126-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
126+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
127127
with:
128128
node-version: '*'
129129
check-latest: true
@@ -171,7 +171,7 @@ jobs:
171171
path: base
172172
ref: ${{ github.base_ref }}
173173

174-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
174+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
175175
with:
176176
node-version: '*'
177177
check-latest: true
@@ -205,7 +205,7 @@ jobs:
205205

206206
steps:
207207
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
208-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
208+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
209209
with:
210210
node-version: '*'
211211
check-latest: true
@@ -222,7 +222,7 @@ jobs:
222222

223223
steps:
224224
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
225-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
225+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
226226
with:
227227
node-version: '*'
228228
check-latest: true
@@ -242,7 +242,7 @@ jobs:
242242

243243
steps:
244244
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
245-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
245+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
246246
with:
247247
node-version: '*'
248248
check-latest: true

.github/workflows/close-issues.yml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
name: Close issues
2-
3-
on:
4-
schedule:
5-
- cron: '0 1 * * *'
6-
workflow_dispatch:
7-
8-
permissions:
9-
contents: read
10-
11-
# Ensure scripts are run with pipefail. See:
12-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
13-
defaults:
14-
run:
15-
shell: bash
16-
17-
jobs:
18-
close-issues:
19-
runs-on: ubuntu-latest
20-
if: github.repository == 'microsoft/TypeScript'
21-
permissions:
22-
contents: read # Apparently required to create issues
23-
issues: write
24-
25-
steps:
26-
- name: Close issues
27-
env:
28-
GH_TOKEN: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
29-
run: |
30-
DATE=$(date --date='2 days ago' --iso-8601)
31-
32-
close_issues() {
33-
echo "Closing issues marked as '$1'."
34-
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
35-
echo "Closing https://github.com/${{ github.repository }}/issues/$issue"
36-
gh issue close $issue --repo ${{ github.repository }} --reason "not planned" --comment "This issue has been marked as \"$1\" and has seen no recent activity. It has been automatically closed for house-keeping purposes."
37-
done
38-
}
39-
40-
close_issues "Duplicate"
41-
close_issues "Unactionable"
42-
close_issues "Not a Defect"
43-
close_issues "External"
44-
close_issues "Working as Intended"
45-
close_issues "Question"
46-
close_issues "Out of Scope"
47-
close_issues "Declined"
48-
close_issues "Won't Fix"
49-
close_issues "Too Complex"
1+
name: Close issues
2+
3+
on:
4+
schedule:
5+
- cron: '0 1 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
# Ensure scripts are run with pipefail. See:
12+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
close-issues:
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'microsoft/TypeScript'
21+
permissions:
22+
contents: read # Apparently required to create issues
23+
issues: write
24+
25+
steps:
26+
- name: Close issues
27+
env:
28+
GH_TOKEN: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
29+
run: |
30+
DATE=$(date --date='2 days ago' --iso-8601)
31+
32+
close_issues() {
33+
echo "Closing issues marked as '$1'."
34+
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
35+
echo "Closing https://github.com/${{ github.repository }}/issues/$issue"
36+
gh issue close $issue --repo ${{ github.repository }} --reason "not planned" --comment "This issue has been marked as \"$1\" and has seen no recent activity. It has been automatically closed for house-keeping purposes."
37+
done
38+
}
39+
40+
close_issues "Duplicate"
41+
close_issues "Unactionable"
42+
close_issues "Not a Defect"
43+
close_issues "External"
44+
close_issues "Working as Intended"
45+
close_issues "Question"
46+
close_issues "Out of Scope"
47+
close_issues "Declined"
48+
close_issues "Won't Fix"
49+
close_issues "Too Complex"

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
49+
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
5050
with:
5151
config-file: ./.github/codeql/codeql-configuration.yml
5252
# Override language selection by uncommenting this and choosing your languages
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below).
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
59+
uses: github/codeql-action/autobuild@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
73+
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: 'typescript-error-deltas Watchdog'
2-
3-
on:
4-
workflow_dispatch:
5-
schedule:
6-
- cron: '0 0 * * 3' # Every Wednesday
7-
8-
permissions:
9-
contents: read
10-
11-
# Ensure scripts are run with pipefail. See:
12-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
13-
defaults:
14-
run:
15-
shell: bash
16-
17-
jobs:
18-
check-for-recent:
19-
runs-on: ubuntu-latest
20-
if: github.repository == 'microsoft/TypeScript'
21-
permissions:
22-
contents: read # Apparently required to create issues
23-
issues: write
24-
env:
25-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
TAGS: '@navya9singh @RyanCavanaugh @DanielRosenwasser'
27-
steps:
28-
- name: NewErrors
29-
run: | # --json and --jq prints exactly one issue number per line of output
30-
DATE=$(date --date="7 days ago" --iso-8601)
31-
gh issue list --repo microsoft/typescript --search "[NewErrors] created:>=$DATE" --state all --json number --jq ".[].number" \
32-
| grep -qe "[0-9]" \
33-
|| gh issue create --repo ${{ github.repository }} --title "No NewErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=48)."
34-
- name: ServerErrors TS
35-
run: |
36-
DATE=$(date --date="7 days ago" --iso-8601)
37-
gh issue list --repo microsoft/typescript --search "[ServerErrors][TypeScript] created:>=$DATE" --state all --json number --jq ".[].number" \
38-
| grep -qe "[0-9]" \
39-
|| gh issue create --repo ${{ github.repository }} --title "No TypeScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=59)."
40-
- name: ServerErrors JS
41-
run: |
42-
DATE=$(date --date="7 days ago" --iso-8601)
43-
gh issue list --repo microsoft/typescript --search "[ServerErrors][JavaScript] created:>=$DATE" --state all --json number --jq ".[].number" \
44-
| grep -qe "[0-9]" \
45-
|| gh issue create --repo ${{ github.repository }} --title "No JavaScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=58)."
1+
name: 'typescript-error-deltas Watchdog'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 3' # Every Wednesday
7+
8+
permissions:
9+
contents: read
10+
11+
# Ensure scripts are run with pipefail. See:
12+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
check-for-recent:
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'microsoft/TypeScript'
21+
permissions:
22+
contents: read # Apparently required to create issues
23+
issues: write
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
TAGS: '@navya9singh @RyanCavanaugh @DanielRosenwasser'
27+
steps:
28+
- name: NewErrors
29+
run: | # --json and --jq prints exactly one issue number per line of output
30+
DATE=$(date --date="7 days ago" --iso-8601)
31+
gh issue list --repo microsoft/typescript --search "[NewErrors] created:>=$DATE" --state all --json number --jq ".[].number" \
32+
| grep -qe "[0-9]" \
33+
|| gh issue create --repo ${{ github.repository }} --title "No NewErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=48)."
34+
- name: ServerErrors TS
35+
run: |
36+
DATE=$(date --date="7 days ago" --iso-8601)
37+
gh issue list --repo microsoft/typescript --search "[ServerErrors][TypeScript] created:>=$DATE" --state all --json number --jq ".[].number" \
38+
| grep -qe "[0-9]" \
39+
|| gh issue create --repo ${{ github.repository }} --title "No TypeScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=59)."
40+
- name: ServerErrors JS
41+
run: |
42+
DATE=$(date --date="7 days ago" --iso-8601)
43+
gh issue list --repo microsoft/typescript --search "[ServerErrors][JavaScript] created:>=$DATE" --state all --json number --jq ".[].number" \
44+
| grep -qe "[0-9]" \
45+
|| gh issue create --repo ${{ github.repository }} --title "No JavaScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=58)."

0 commit comments

Comments
 (0)