Skip to content

Commit 93e70c6

Browse files
mdpsaoudrizwan
andauthored
Chore: Prettier for consistant formatting (RooVetGit#794)
* Chore: Pretier for consistant formatting - TODO: This PR needs to be updated by Saoud after he runs `npm install` & `npm format:fix` and commits the results of the prettier changes. * Revert prettier config * Run npm install * Fix prettier config and ignore package lock * Run format --------- Co-authored-by: Saoud Rizwan <[email protected]>
1 parent 8d7e28c commit 93e70c6

Some content is hidden

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

65 files changed

+2101
-2091
lines changed

.eslintrc.json

+24-30
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
{
2-
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
5-
"ecmaVersion": 6,
6-
"sourceType": "module"
7-
},
8-
"plugins": [
9-
"@typescript-eslint"
10-
],
11-
"rules": {
12-
"@typescript-eslint/naming-convention": [
13-
"warn",
14-
{
15-
"selector": "import",
16-
"format": [ "camelCase", "PascalCase" ]
17-
}
18-
],
19-
"@typescript-eslint/semi": "off",
20-
"curly": "warn",
21-
"eqeqeq": "warn",
22-
"no-throw-literal": "warn",
23-
"semi": "off",
24-
"react-hooks/exhaustive-deps": "off"
25-
},
26-
"ignorePatterns": [
27-
"out",
28-
"dist",
29-
"**/*.d.ts"
30-
]
31-
}
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": ["@typescript-eslint"],
9+
"rules": {
10+
"@typescript-eslint/naming-convention": [
11+
"warn",
12+
{
13+
"selector": "import",
14+
"format": ["camelCase", "PascalCase"]
15+
}
16+
],
17+
"@typescript-eslint/semi": "off",
18+
"curly": "warn",
19+
"eqeqeq": "warn",
20+
"no-throw-literal": "warn",
21+
"semi": "off",
22+
"react-hooks/exhaustive-deps": "off"
23+
},
24+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
25+
}

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist/
22
node_modules
33
webview-ui/build/
4-
CHANGELOG.md
4+
CHANGELOG.md
5+
package-lock.json

.prettierrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"useTabs": true,
44
"printWidth": 120,
55
"semi": false,
6-
"jsxBracketSameLine": true
7-
}
6+
"bracketSameLine": true
7+
}

.vscode-test.mjs

+3-3
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+
})

.vscode/extensions.json

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

.vscode/launch.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
"name": "Run Extension",
1010
"type": "extensionHost",
1111
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1814
"preLaunchTask": "${defaultBuildTask}"
1915
}
2016
]

.vscode/settings.json

+11-11
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

+46-53
Original file line numberDiff line numberDiff line change
@@ -4,56 +4,52 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"label": "watch",
8-
"dependsOn": [
9-
"npm: build:webview",
10-
"npm: watch:tsc",
11-
"npm: watch:esbuild"
12-
],
13-
"presentation": {
14-
"reveal": "never"
15-
},
16-
"group": {
17-
"kind": "build",
18-
"isDefault": true
19-
}
20-
},
21-
{
22-
"type": "npm",
23-
"script": "build:webview",
24-
"group": "build",
25-
"problemMatcher": [],
26-
"isBackground": true,
27-
"label": "npm: build:webview",
28-
"presentation": {
29-
"group": "watch",
30-
"reveal": "never"
31-
}
32-
},
33-
{
34-
"type": "npm",
35-
"script": "watch:esbuild",
36-
"group": "build",
37-
"problemMatcher": "$esbuild-watch",
38-
"isBackground": true,
39-
"label": "npm: watch:esbuild",
40-
"presentation": {
41-
"group": "watch",
42-
"reveal": "never"
43-
}
44-
},
7+
"label": "watch",
8+
"dependsOn": ["npm: build:webview", "npm: watch:tsc", "npm: watch:esbuild"],
9+
"presentation": {
10+
"reveal": "never"
11+
},
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
}
16+
},
17+
{
18+
"type": "npm",
19+
"script": "build:webview",
20+
"group": "build",
21+
"problemMatcher": [],
22+
"isBackground": true,
23+
"label": "npm: build:webview",
24+
"presentation": {
25+
"group": "watch",
26+
"reveal": "never"
27+
}
28+
},
29+
{
30+
"type": "npm",
31+
"script": "watch:esbuild",
32+
"group": "build",
33+
"problemMatcher": "$esbuild-watch",
34+
"isBackground": true,
35+
"label": "npm: watch:esbuild",
36+
"presentation": {
37+
"group": "watch",
38+
"reveal": "never"
39+
}
40+
},
4541
{
46-
"type": "npm",
47-
"script": "watch:tsc",
48-
"group": "build",
49-
"problemMatcher": "$tsc-watch",
50-
"isBackground": true,
51-
"label": "npm: watch:tsc",
52-
"presentation": {
53-
"group": "watch",
54-
"reveal": "never"
55-
}
56-
},
42+
"type": "npm",
43+
"script": "watch:tsc",
44+
"group": "build",
45+
"problemMatcher": "$tsc-watch",
46+
"isBackground": true,
47+
"label": "npm: watch:tsc",
48+
"presentation": {
49+
"group": "watch",
50+
"reveal": "never"
51+
}
52+
},
5753
{
5854
"type": "npm",
5955
"script": "watch-tests",
@@ -67,10 +63,7 @@
6763
},
6864
{
6965
"label": "tasks: watch-tests",
70-
"dependsOn": [
71-
"npm: watch",
72-
"npm: watch-tests"
73-
],
66+
"dependsOn": ["npm: watch", "npm: watch-tests"],
7467
"problemMatcher": []
7568
}
7669
]

package-lock.json

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)