Skip to content

Commit 92800e7

Browse files
committed
chore(vscode): centralise formatting code
1 parent e2adfe3 commit 92800e7

52 files changed

Lines changed: 19689 additions & 19673 deletions

Some content is hidden

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

.prettierignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
web/client/**/*.py
2+
web/client/.prettierignore
3+
web/client/.gitignore
4+
web/client/node_modules/
5+
web/client/test-results/
6+
web/client/playwright-report/
7+
web/client/playwright/.cache/
8+
web/client/dist
9+
web/client/public/favicons/
10+
web/client/public/fonts/
11+
web/client/src/styles/fonts/
12+
web/client/src/assets/fonts/
13+
web/client/tsconfig.tsbuildinfo
14+
15+
node_modules/
16+
vscode/extension/node_modules/
17+
vscode/extension/dist
18+
vscode/extension/out
19+
vscode/extension/tsconfig.tsbuildinfo
20+
vscode/extension/.vscode-test/
21+
22+
sqlmesh
23+
docs
24+
tests
25+
examples
26+
posts
27+
.circleci
28+
README.md
29+
mkdocs.yml
30+
.readthedocs.yml
31+
.pre-commit-config.yaml

package-lock.json

Lines changed: 18599 additions & 18713 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"workspaces": [
3-
"vscode/extension",
4-
"web/client"
5-
]
2+
"workspaces": [
3+
"vscode/extension",
4+
"web/client"
5+
],
6+
"devDependencies": {
7+
"prettier": "^3.5.2"
8+
},
9+
"scripts": {
10+
"fmt": "prettier --write .",
11+
"fmt:check": "prettier --check ."
12+
}
613
}

tooling/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ This directory contains the tooling for building the SQLMesh project.
44

55
## Vscode
66

7-
The `vscode` directory contains sample configs for VSCode that can be copied into the user's VSCode settings in order to make the development of SQLMesh easier. The following command will copy the sample configs into the user's VSCode settings.
7+
The `vscode` directory contains sample configs for VSCode that can be copied
8+
into the user's VSCode settings in order to make the development of SQLMesh
9+
easier. The following command will copy the sample configs into the user's
10+
VSCode settings.
811

912
```bash
1013
make vscode_settings
11-
```
14+
```

tooling/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", "amodio.tsl-problem-matcher", "ms-vscode.extension-test-runner"]
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"amodio.tsl-problem-matcher",
7+
"ms-vscode.extension-test-runner"
8+
]
59
}

tooling/vscode/launch.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
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-
"${workspaceFolder}/examples/sushi",
14-
"--extensionDevelopmentPath=${workspaceFolder}/vscode/extension",
15-
],
16-
"outFiles": [
17-
"${workspaceFolder}/vscode/extension/dist/**/*.js"
18-
],
19-
"preLaunchTask": "${defaultBuildTask}"
20-
}
21-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"${workspaceFolder}/examples/sushi",
14+
"--extensionDevelopmentPath=${workspaceFolder}/vscode/extension"
15+
],
16+
"outFiles": ["${workspaceFolder}/vscode/extension/dist/**/*.js"],
17+
"preLaunchTask": "${defaultBuildTask}"
18+
}
19+
]
2220
}

tooling/vscode/settings.json

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

tooling/vscode/tasks.json

Lines changed: 48 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,52 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "extension-watch",
8-
"type": "npm",
9-
"script": "watch",
10-
"problemMatcher": "$ts-webpack-watch",
11-
"isBackground": true,
12-
"presentation": {
13-
"reveal": "never",
14-
"group": "watchers"
15-
},
16-
"group": {
17-
"kind": "build",
18-
},
19-
"options": {
20-
"cwd": "${workspaceFolder}/vscode/extension"
21-
}
22-
},
23-
{
24-
"label": "extension-watch-develop",
25-
"group": {
26-
"kind": "build",
27-
"isDefault": true
28-
},
29-
"dependsOn": ["extension-watch"],
30-
"dependsOrder": "parallel"
31-
},
32-
{
33-
"type": "npm",
34-
"script": "watch-tests",
35-
"problemMatcher": "$tsc-watch",
36-
"isBackground": true,
37-
"presentation": {
38-
"reveal": "never",
39-
"group": "watchers"
40-
},
41-
"group": "build",
42-
"options": {
43-
"cwd": "${workspaceFolder}/vscode/extension"
44-
}
45-
},
46-
{
47-
"label": "tasks: watch-tests",
48-
"dependsOn": [
49-
"npm: watch",
50-
"npm: watch-tests"
51-
],
52-
"problemMatcher": []
53-
}
54-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "extension-watch",
8+
"type": "npm",
9+
"script": "watch",
10+
"problemMatcher": "$ts-webpack-watch",
11+
"isBackground": true,
12+
"presentation": {
13+
"reveal": "never",
14+
"group": "watchers"
15+
},
16+
"group": {
17+
"kind": "build"
18+
},
19+
"options": {
20+
"cwd": "${workspaceFolder}/vscode/extension"
21+
}
22+
},
23+
{
24+
"label": "extension-watch-develop",
25+
"group": {
26+
"kind": "build",
27+
"isDefault": true
28+
},
29+
"dependsOn": ["extension-watch"],
30+
"dependsOrder": "parallel"
31+
},
32+
{
33+
"type": "npm",
34+
"script": "watch-tests",
35+
"problemMatcher": "$tsc-watch",
36+
"isBackground": true,
37+
"presentation": {
38+
"reveal": "never",
39+
"group": "watchers"
40+
},
41+
"group": "build",
42+
"options": {
43+
"cwd": "${workspaceFolder}/vscode/extension"
44+
}
45+
},
46+
{
47+
"label": "tasks: watch-tests",
48+
"dependsOn": ["npm: watch", "npm: watch-tests"],
49+
"problemMatcher": []
50+
}
51+
]
5552
}

vscode/extension/.vscode-test.mjs

Lines changed: 3 additions & 3 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',
5-
});
4+
files: 'out/test/**/*.test.js',
5+
})

0 commit comments

Comments
 (0)