Skip to content

Commit 9fb1306

Browse files
committed
chore: add dprint
1 parent 5db0dd5 commit 9fb1306

Some content is hidden

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

52 files changed

+592
-319
lines changed

.vscode/launch.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
2-
{
3-
"version": "0.2.0",
4-
"configurations": [
5-
{
6-
"name": "Launch VSCode Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"autoAttachChildProcesses": true,
10-
"runtimeExecutable": "${execPath}",
11-
"args": [
12-
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode",
13-
"--folder-uri=${workspaceRoot}/fixtures",
14-
],
15-
"outFiles": [
16-
"${workspaceRoot}/**/*.js"
17-
],
18-
},
19-
],
20-
}
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Launch VSCode Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"autoAttachChildProcesses": true,
10+
"runtimeExecutable": "${execPath}",
11+
"args": [
12+
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode",
13+
"--folder-uri=${workspaceRoot}/fixtures"
14+
],
15+
"outFiles": [
16+
"${workspaceRoot}/**/*.js"
17+
]
18+
}
19+
]
20+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
"packages/*/lib/**/*.js": true,
2424
"packages/**/*.map": true
2525
}
26-
}
26+
}

.vscode/tasks.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "npm",
6-
"script": "compile",
7-
"group": "build",
8-
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
11-
},
12-
"problemMatcher": [
13-
"$tsc"
14-
]
15-
},
16-
{
17-
"type": "npm",
18-
"script": "watch",
19-
"isBackground": true,
20-
"group": {
21-
"kind": "build",
22-
"isDefault": true
23-
},
24-
"presentation": {
25-
"panel": "dedicated",
26-
"reveal": "never"
27-
},
28-
"problemMatcher": [
29-
"$tsc-watch"
30-
]
31-
}
32-
]
33-
}
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "compile",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": [
13+
"$tsc"
14+
]
15+
},
16+
{
17+
"type": "npm",
18+
"script": "watch",
19+
"isBackground": true,
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"presentation": {
25+
"panel": "dedicated",
26+
"reveal": "never"
27+
},
28+
"problemMatcher": [
29+
"$tsc-watch"
30+
]
31+
}
32+
]
33+
}

dprint.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"useTabs": true,
3+
"typescript": {
4+
"quoteStyle": "preferSingle",
5+
"arrowFunction.useParentheses": "preferNone",
6+
"nextControlFlowPosition": "nextLine"
7+
},
8+
"json": {
9+
},
10+
"excludes": [
11+
"**/node_modules",
12+
"**/*-lock.json",
13+
"packages/language-service/data"
14+
],
15+
"plugins": [
16+
"https://plugins.dprint.dev/typescript-0.95.7.wasm",
17+
"https://plugins.dprint.dev/json-0.20.0.wasm"
18+
]
19+
}

fixtures/define-eslint-rules/fixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let value = 9001;
33
// ^? let value: number
44

55
// $ExpectError
6-
value = "over nine thousand";
6+
value = 'over nine thousand';
77

88
// $ExpectType number
99
9001;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"include": [ "fixture.ts" ],
2+
"include": ["fixture.ts"],
33
"compilerOptions": {
44
"noEmit": true,
5-
"allowImportingTsExtensions": true,
6-
},
5+
"allowImportingTsExtensions": true
6+
}
77
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"include": [ "fixture.ts" ],
2+
"include": ["fixture.ts"],
33
"compilerOptions": {
44
"noEmit": true,
5-
"allowImportingTsExtensions": true,
6-
},
5+
"allowImportingTsExtensions": true
6+
}
77
}

fixtures/define-plugin/tsslint.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function createIngorePlugin(pattern: RegExp) {
1818
resolveDiagnostics(file, results) {
1919
const comments = [...file.text.matchAll(pattern)];
2020
const lines = new Set(comments.map(comment => file.getLineAndCharacterOfPosition(comment.index).line));
21-
return results.filter(error => error.source !== 'tsslint' || !lines.has(file.getLineAndCharacterOfPosition(error.start).line - 1));
21+
return results.filter(error =>
22+
error.source !== 'tsslint' || !lines.has(file.getLineAndCharacterOfPosition(error.start).line - 1)
23+
);
2224
},
2325
}));
2426
}

fixtures/define-rule/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"include": [ "fixture.ts", "exclude.ts" ],
2+
"include": ["fixture.ts", "exclude.ts"],
33
"compilerOptions": {
44
"noEmit": true,
5-
"allowImportingTsExtensions": true,
6-
},
5+
"allowImportingTsExtensions": true
6+
}
77
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"include": [ "fixture.ts" ],
2+
"include": ["fixture.ts"],
33
"compilerOptions": {
44
"noEmit": true,
5-
"allowImportingTsExtensions": true,
6-
},
5+
"allowImportingTsExtensions": true
6+
}
77
}

0 commit comments

Comments
 (0)