Skip to content

Commit 7bc2793

Browse files
committed
[generated] Run dprint
[git-generate] test -f ./node_modules/.bin/dprint || npm ci npx dprint fmt
1 parent 6e8ba8d commit 7bc2793

File tree

495 files changed

+23209
-18176
lines changed

Some content is hidden

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

495 files changed

+23209
-18176
lines changed

.eslintplugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const path = require("path");
33

44
const rulesDir = path.join(__dirname, "scripts", "eslint", "rules");
55
const ext = ".cjs";
6-
const ruleFiles = fs.readdirSync(rulesDir).filter((p) => p.endsWith(ext));
6+
const ruleFiles = fs.readdirSync(rulesDir).filter(p => p.endsWith(ext));
77

88
module.exports = {
9-
rules: Object.fromEntries(ruleFiles.map((p) => {
9+
rules: Object.fromEntries(ruleFiles.map(p => {
1010
return [p.slice(0, -ext.length), require(path.join(rulesDir, p))];
1111
})),
12-
}
12+
};

.github/ISSUE_TEMPLATE/config.yml

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

.github/ISSUE_TEMPLATE/module_resolution.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Module Resolution
22
description: Report a problem with module resolution
3-
title: "Module Resolution:"
3+
title: 'Module Resolution:'
44
labels: []
55
body:
66
- type: markdown
@@ -64,7 +64,7 @@ body:
6464
attributes:
6565
label: Run `tsc --showConfig` and paste its output here
6666
description: Repros that depend on running within external tools (yarn, pnpm, esbuild, etc.) are not TypeScript defects and will not be investigated.
67-
placeholder: "> tsc --showConfig"
67+
placeholder: '> tsc --showConfig'
6868
validations:
6969
required: true
7070

@@ -73,30 +73,30 @@ body:
7373
attributes:
7474
label: Run `tsc --traceResolution` and paste its output here
7575
description: Run `tsc --traceResolution` and paste the output here.
76-
placeholder: "> tsc --traceResolution"
76+
placeholder: '> tsc --traceResolution'
7777
validations:
7878
required: true
7979

8080
- type: textarea
8181
id: import-package-json
8282
attributes:
8383
label: Paste the `package.json` of the *importing* module, if it exists
84-
placeholder: "my_project/package.json"
84+
placeholder: 'my_project/package.json'
8585
validations:
8686
required: true
8787

8888
- type: textarea
8989
id: export-package-json
9090
attributes:
9191
label: Paste the `package.json` of the *target* module, if it exists
92-
placeholder: "node_modules/somepkg/package.json"
92+
placeholder: 'node_modules/somepkg/package.json'
9393
validations:
9494
required: true
9595

9696
- type: textarea
9797
id: comments
9898
attributes:
9999
label: Any other comments can go here
100-
placeholder: "Have a nice day!"
100+
placeholder: 'Have a nice day!'
101101
validations:
102102
required: true

.github/codeql/codeql-configuration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name : CodeQL Configuration
1+
name: CodeQL Configuration
22

33
paths:
44
- src

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
contents: write
2121

2222
steps:
23-
- uses: actions/checkout@v3
24-
- uses: actions/setup-node@v3
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
2525

26-
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
27-
run: |
28-
git config user.email "typescriptbot@microsoft.com"
29-
git config user.name "TypeScript Bot"
30-
npm ci
31-
git rm -r --quiet tests/baselines/reference
32-
npx hereby runtests-parallel --ci --fix || true
33-
npx hereby baseline-accept
34-
git add ./src
35-
git add ./tests/baselines/reference
36-
git diff --cached
37-
git commit -m "Update Baselines and/or Applied Lint Fixes"
38-
git push
26+
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
27+
run: |
28+
git config user.email "typescriptbot@microsoft.com"
29+
git config user.name "TypeScript Bot"
30+
npm ci
31+
git rm -r --quiet tests/baselines/reference
32+
npx hereby runtests-parallel --ci --fix || true
33+
npx hereby baseline-accept
34+
git add ./src
35+
git add ./tests/baselines/reference
36+
git diff --cached
37+
git commit -m "Update Baselines and/or Applied Lint Fixes"
38+
git push

0 commit comments

Comments
 (0)