Skip to content

Commit 9188db7

Browse files
committed
Format using prettier
1 parent 43b1309 commit 9188db7

23 files changed

+662
-535
lines changed

.vscode-test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from '@vscode/test-cli';
1+
import { defineConfig } from "@vscode/test-cli";
22

33
export default defineConfig({
4-
files: 'out/test/**/*.test.js',
4+
files: "out/test/**/*.test.js",
55
});

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
4-
"recommendations": ["dbaeumer.vscode-eslint", "connor4312.esbuild-problem-matchers", "ms-vscode.extension-test-runner"]
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"connor4312.esbuild-problem-matchers",
7+
"ms-vscode.extension-test-runner"
8+
]
59
}

.vscode/launch.json

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
18-
"preLaunchTask": "${defaultBuildTask}"
19-
}
20-
]
21-
}
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
14+
"preLaunchTask": "${defaultBuildTask}"
15+
}
16+
]
17+
}

.vscode/settings.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5-
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6-
},
7-
"search.exclude": {
8-
"out": true, // set this to false to include "out" folder in search results
9-
"dist": true // set this to false to include "dist" folder in search results
10-
},
11-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12-
"typescript.tsc.autoDetect": "off"
13-
}
3+
"files.exclude": {
4+
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5+
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6+
},
7+
"search.exclude": {
8+
"out": true, // set this to false to include "out" folder in search results
9+
"dist": true // set this to false to include "dist" folder in search results
10+
},
11+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12+
"typescript.tsc.autoDetect": "off"
13+
}

.vscode/tasks.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "bun",
6-
"script": "bun run --cwd ${workspaceFolder} ./scripts/build-with-esbuild.ts",
7-
"problemMatcher": [],
8-
"label": "bun: build",
9-
"detail": "bun run ./scripts/build-with-esbuild.ts - package.json",
10-
"group": {
11-
"kind": "build",
12-
"isDefault": true
13-
}
14-
}
15-
]
16-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "bun",
6+
"script": "bun run --cwd ${workspaceFolder} ./scripts/build-with-esbuild.ts",
7+
"problemMatcher": [],
8+
"label": "bun: build",
9+
"detail": "bun run ./scripts/build-with-esbuild.ts - package.json",
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
}
14+
}
15+
]
16+
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9-
- Initial release
9+
- Initial release

bun.lockb

360 Bytes
Binary file not shown.

eslint.config.js

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
// @ts-check
22

3-
import eslint from '@eslint/js';
4-
import tseslint from 'typescript-eslint';
3+
import eslint from "@eslint/js";
4+
import tseslint from "typescript-eslint";
55

66
export default tseslint.config(
7-
eslint.configs.recommended,
8-
...tseslint.configs.recommended,
9-
{
10-
ignores: ["dist/*", "webview-content/*", "src/frontend"],
11-
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
ignores: ["dist/*", "webview-content/*", "src/frontend"],
11+
},
12+
{
13+
rules: {
14+
"@typescript-eslint/no-unused-vars": [
15+
"error", // or "error"
16+
{
17+
argsIgnorePattern: "^_",
18+
varsIgnorePattern: "^_",
19+
caughtErrorsIgnorePattern: "^_",
20+
},
21+
],
1222
},
13-
{
14-
rules: {
15-
"@typescript-eslint/no-unused-vars": [
16-
"error", // or "error"
17-
{
18-
"argsIgnorePattern": "^_",
19-
"varsIgnorePattern": "^_",
20-
"caughtErrorsIgnorePattern": "^_"
21-
}
22-
]
23-
}
24-
}
25-
26-
);
23+
},
24+
);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"esbuild": "^0.20.0",
2121
"esbuild-plugin-copy": "^2.1.1",
2222
"eslint": "^9.9.1",
23+
"prettier": "3.3.3",
2324
"svelte": "^4.2.18",
2425
"tree-sitter-cli": "^0.23.0",
2526
"tree-sitter-go": "^0.23.0",
@@ -81,4 +82,4 @@
8182
"engines": {
8283
"vscode": "^1.86.0"
8384
}
84-
}
85+
}

prettier.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @see https://prettier.io/docs/en/configuration.html
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {};
6+
7+
export default config;

0 commit comments

Comments
 (0)