Skip to content

Commit 266502c

Browse files
committed
[generated] Run dprint
[git-generate] test -f ./node_modules/.bin/dprint || npm ci npx dprint fmt
1 parent 88d6cf4 commit 266502c

File tree

494 files changed

+22848
-17825
lines changed

Some content is hidden

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

494 files changed

+22848
-17825
lines changed

.c8rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"include": ["src/**", "built/local/**"],
55
"exclude": ["**/node_modules/**"],
66
"mergeAsync": true
7-
}
7+
}

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"terminal.integrated.profiles.linux": {
1212
"bash": {
1313
"path": "/bin/bash",
14-
"icon": "terminal-bash",
15-
},
16-
},
14+
"icon": "terminal-bash"
15+
}
16+
}
1717
},
1818
"extensions": [
1919
"dbaeumer.vscode-eslint"

.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+
};

.eslintrc.json

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
"es6": true
1212
},
1313
"plugins": [
14-
"@typescript-eslint", "no-null", "import", "eslint-plugin-local", "simple-import-sort"
14+
"@typescript-eslint",
15+
"no-null",
16+
"import",
17+
"eslint-plugin-local",
18+
"simple-import-sort"
1519
],
1620
"ignorePatterns": [
1721
"**/node_modules/**",
@@ -96,7 +100,7 @@
96100
"local/no-type-assertion-whitespace": "error",
97101
"local/type-operator-spacing": "error",
98102
"local/only-arrow-functions": ["error", {
99-
"allowNamedFunctions": true ,
103+
"allowNamedFunctions": true,
100104
"allowDeclarations": true
101105
}],
102106
"local/no-double-space": "error",
@@ -129,14 +133,7 @@
129133
"no-new-func": "error",
130134
"no-new-wrappers": "error",
131135
"no-return-await": "error",
132-
"no-restricted-globals": ["error",
133-
{ "name": "setTimeout" },
134-
{ "name": "clearTimeout" },
135-
{ "name": "setInterval" },
136-
{ "name": "clearInterval" },
137-
{ "name": "setImmediate" },
138-
{ "name": "clearImmediate" }
139-
],
136+
"no-restricted-globals": ["error", { "name": "setTimeout" }, { "name": "clearTimeout" }, { "name": "setInterval" }, { "name": "clearInterval" }, { "name": "setImmediate" }, { "name": "clearImmediate" }],
140137
"no-sparse-arrays": "error",
141138
"no-template-curly-in-string": "error",
142139
"no-throw-literal": "error",
@@ -159,7 +156,7 @@
159156
"overrides": [
160157
// By default, the ESLint CLI only looks at .js files. But, it will also look at
161158
// any files which are referenced in an override config. Most users of typescript-eslint
162-
// get this behavior by default by extending a recommended typescript-eslint config, which
159+
// get this behavior by default by extending a recommended typescript-eslint config, which
163160
// just so happens to override some core ESLint rules. We don't extend from any config, so
164161
// explicitly reference TS files here so the CLI picks them up.
165162
//
@@ -172,13 +169,7 @@
172169
"files": ["*.mjs", "*.mts"],
173170
"rules": {
174171
// These globals don't exist outside of CJS files.
175-
"no-restricted-globals": ["error",
176-
{ "name": "__filename" },
177-
{ "name": "__dirname" },
178-
{ "name": "require" },
179-
{ "name": "module" },
180-
{ "name": "exports" }
181-
]
172+
"no-restricted-globals": ["error", { "name": "__filename" }, { "name": "__dirname" }, { "name": "require" }, { "name": "module" }, { "name": "exports" }]
182173
}
183174
},
184175
{
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"project": "../../src/tsconfig.json",
3-
"source": "../../package.json",
4-
"package": "../../package.json",
5-
"out": "../../typescript.lsif"
6-
}
2+
"project": "../../src/tsconfig.json",
3+
"source": "../../package.json",
4+
"package": "../../package.json",
5+
"out": "../../typescript.lsif"
6+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"unwantedRecommendations": [
99
"ms-vscode.vscode-typescript-tslint-plugin"
1010
]
11-
}
11+
}

.vscode/launch.template.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22

33
Copy this file into '.vscode/launch.json' or merge its
44
contents into your existing configurations.
@@ -13,52 +13,52 @@
1313
*/
1414

1515
{
16-
// Use IntelliSense to learn about possible attributes.
17-
// Hover to view descriptions of existing attributes.
18-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
19-
"version": "0.2.0",
20-
"configurations": [
21-
{
22-
"type": "node",
23-
"request": "launch",
24-
"name": "Mocha Tests (currently opened test)",
25-
"runtimeArgs": ["--nolazy"],
26-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
27-
"args": [
28-
"-u",
29-
"bdd",
30-
"--no-timeouts",
31-
"--colors",
32-
"built/local/run.js",
33-
"-f",
34-
// You can change this to be the name of a specific test file (without the file extension)
35-
// to consistently launch the same test
36-
"${fileBasenameNoExtension}",
37-
"--skip-percent",
38-
"0"
39-
],
40-
"env": {
41-
"NODE_ENV": "testing"
42-
},
43-
"outFiles": [
44-
"${workspaceFolder}/built/**/*.js",
45-
"${workspaceFolder}/built/**/*.mjs",
46-
"${workspaceFolder}/built/**/*.cjs",
47-
"!**/node_modules/**"
48-
],
49-
"sourceMaps": true,
50-
"smartStep": true,
51-
"preLaunchTask": "npm: build:tests",
52-
"console": "integratedTerminal",
53-
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
54-
},
55-
{
56-
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
57-
"type": "node",
58-
"request": "attach",
59-
"name": "Attach to VS Code TS Server via Port",
60-
"processId": "${command:PickProcess}",
61-
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
62-
}
63-
]
16+
// Use IntelliSense to learn about possible attributes.
17+
// Hover to view descriptions of existing attributes.
18+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
19+
"version": "0.2.0",
20+
"configurations": [
21+
{
22+
"type": "node",
23+
"request": "launch",
24+
"name": "Mocha Tests (currently opened test)",
25+
"runtimeArgs": ["--nolazy"],
26+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
27+
"args": [
28+
"-u",
29+
"bdd",
30+
"--no-timeouts",
31+
"--colors",
32+
"built/local/run.js",
33+
"-f",
34+
// You can change this to be the name of a specific test file (without the file extension)
35+
// to consistently launch the same test
36+
"${fileBasenameNoExtension}",
37+
"--skip-percent",
38+
"0"
39+
],
40+
"env": {
41+
"NODE_ENV": "testing"
42+
},
43+
"outFiles": [
44+
"${workspaceFolder}/built/**/*.js",
45+
"${workspaceFolder}/built/**/*.mjs",
46+
"${workspaceFolder}/built/**/*.cjs",
47+
"!**/node_modules/**"
48+
],
49+
"sourceMaps": true,
50+
"smartStep": true,
51+
"preLaunchTask": "npm: build:tests",
52+
"console": "integratedTerminal",
53+
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
54+
},
55+
{
56+
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
57+
"type": "node",
58+
"request": "attach",
59+
"name": "Attach to VS Code TS Server via Port",
60+
"processId": "${command:PickProcess}",
61+
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
62+
}
63+
]
6464
}

.vscode/settings.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"[typescript][javascript][json][jsonc]": {
88
"editor.formatOnSave": true,
99
"editor.defaultFormatter": "dprint.dprint"
10-
}
10+
},
1111

1212
// To ignore commits listed in .git-blame-ignore-revs in GitLens:
1313
"gitlens.advanced.blame.customArguments": [

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
"problemMatcher": [
5050
"$tsc"
5151
]
52-
},
52+
}
5353
]
5454
}

0 commit comments

Comments
 (0)