Skip to content

Commit 8d1c9d2

Browse files
committed
Run dprint
[git-generate] test -f ./node_modules/.bin/dprint || npm ci npx dprint fmt
1 parent 8f9444f commit 8d1c9d2

File tree

484 files changed

+20756
-17050
lines changed

Some content is hidden

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

484 files changed

+20756
-17050
lines changed

.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 = ".js";
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: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
"es6": true
1212
},
1313
"plugins": [
14-
"@typescript-eslint", "jsdoc", "no-null", "import", "eslint-plugin-local"
14+
"@typescript-eslint",
15+
"jsdoc",
16+
"no-null",
17+
"import",
18+
"eslint-plugin-local"
1519
],
1620
"overrides": [
1721
// By default, the ESLint CLI only looks at .js files. But, it will also look at
1822
// any files which are referenced in an override config. Most users of typescript-eslint
19-
// get this behavior by default by extending a recommended typescript-eslint config, which
23+
// get this behavior by default by extending a recommended typescript-eslint config, which
2024
// just so happens to override some core ESLint rules. We don't extend from any config, so
2125
// explicitly reference TS files here so the CLI picks them up.
2226
//
@@ -88,7 +92,7 @@
8892
"local/no-type-assertion-whitespace": "error",
8993
"local/type-operator-spacing": "error",
9094
"local/only-arrow-functions": ["error", {
91-
"allowNamedFunctions": true ,
95+
"allowNamedFunctions": true,
9296
"allowDeclarations": true
9397
}],
9498
"local/no-double-space": "error",
@@ -124,14 +128,7 @@
124128
"no-new-func": "error",
125129
"no-new-wrappers": "error",
126130
"no-return-await": "error",
127-
"no-restricted-globals": ["error",
128-
{ "name": "setTimeout" },
129-
{ "name": "clearTimeout" },
130-
{ "name": "setInterval" },
131-
{ "name": "clearInterval" },
132-
{ "name": "setImmediate" },
133-
{ "name": "clearImmediate" }
134-
],
131+
"no-restricted-globals": ["error", { "name": "setTimeout" }, { "name": "clearTimeout" }, { "name": "setInterval" }, { "name": "clearInterval" }, { "name": "setImmediate" }, { "name": "clearImmediate" }],
135132
"no-sparse-arrays": "error",
136133
"no-template-curly-in-string": "error",
137134
"no-throw-literal": "error",

.github/tsc.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"problemMatcher": [
3-
{
4-
"owner": "tsc",
5-
"pattern": [
6-
{
7-
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),(\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
8-
"file": 1,
9-
"line": 2,
10-
"column": 3,
11-
"severity": 4,
12-
"code": 5,
13-
"message": 6
14-
}
15-
]
16-
}
17-
]
2+
"problemMatcher": [
3+
{
4+
"owner": "tsc",
5+
"pattern": [
6+
{
7+
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),(\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"code": 5,
13+
"message": 6
14+
}
15+
]
16+
}
17+
]
1818
}
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
@@ -7,4 +7,4 @@
77
"unwantedRecommendations": [
88
"ms-vscode.vscode-typescript-tslint-plugin"
99
]
10-
}
10+
}

.vscode/launch.template.json

Lines changed: 47 additions & 47 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,50 +13,50 @@
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-
"protocol": "inspector",
24-
"request": "launch",
25-
"name": "Mocha Tests (currently opened test)",
26-
"runtimeArgs": ["--nolazy"],
27-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
28-
"args": [
29-
"-u",
30-
"bdd",
31-
"--no-timeouts",
32-
"--colors",
33-
"built/local/run.js",
34-
"-f",
35-
// You can change this to be the name of a specific test file (without the file extension)
36-
// to consistently launch the same test
37-
"${fileBasenameNoExtension}",
38-
"--skip-percent",
39-
"0"
40-
],
41-
"env": {
42-
"NODE_ENV": "testing"
43-
},
44-
"sourceMaps": true,
45-
"smartStep": true,
46-
"preLaunchTask": "gulp: tests",
47-
"console": "integratedTerminal",
48-
"outFiles": [
49-
"${workspaceRoot}/built/local/run.js"
50-
],
51-
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue",
52-
},
53-
{
54-
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
55-
"type": "node",
56-
"request": "attach",
57-
"name": "Attach to VS Code TS Server via Port",
58-
"processId": "${command:PickProcess}",
59-
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue",
60-
}
61-
]
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+
"protocol": "inspector",
24+
"request": "launch",
25+
"name": "Mocha Tests (currently opened test)",
26+
"runtimeArgs": ["--nolazy"],
27+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
28+
"args": [
29+
"-u",
30+
"bdd",
31+
"--no-timeouts",
32+
"--colors",
33+
"built/local/run.js",
34+
"-f",
35+
// You can change this to be the name of a specific test file (without the file extension)
36+
// to consistently launch the same test
37+
"${fileBasenameNoExtension}",
38+
"--skip-percent",
39+
"0"
40+
],
41+
"env": {
42+
"NODE_ENV": "testing"
43+
},
44+
"sourceMaps": true,
45+
"smartStep": true,
46+
"preLaunchTask": "gulp: tests",
47+
"console": "integratedTerminal",
48+
"outFiles": [
49+
"${workspaceRoot}/built/local/run.js"
50+
],
51+
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
52+
},
53+
{
54+
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
55+
"type": "node",
56+
"request": "attach",
57+
"name": "Attach to VS Code TS Server via Port",
58+
"processId": "${command:PickProcess}",
59+
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
60+
}
61+
]
6262
}

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"label": "gulp: services",
4040
"problemMatcher": [
4141
"$tsc"
42-
],
42+
]
4343
}
4444
]
45-
}
45+
}

0 commit comments

Comments
 (0)