Skip to content

Commit c0bf549

Browse files
Update dependency versions (#120)
* Updating dependency versions * Update es lint * Clean up
1 parent d1c975c commit c0bf549

File tree

12 files changed

+1158
-1627
lines changed

12 files changed

+1158
-1627
lines changed

.eslintrc.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Install dependencies
2121
run: npm --color ci
2222

23+
- name: Run lint
24+
run: npm --color run lint
25+
2326
- name: Read version from package.json
2427
run: |
2528
VERSION=$(node -p "require('./package.json').version")

.vscode/launch.json

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,16 @@
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-
"name": "Run Extension",
9-
"type": "extensionHost",
10-
"request": "launch",
11-
"runtimeExecutable": "${execPath}",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/out/**/*.js"
17-
],
18-
"preLaunchTask": "npm: compile"
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"runtimeExecutable": "${execPath}",
25-
"args": [
26-
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test"
28-
],
29-
"outFiles": [
30-
"${workspaceFolder}/out/test/**/*.js"
31-
],
32-
"preLaunchTask": "npm: compile"
33-
},
34-
{
35-
"name": "Debug tests",
36-
"type": "node",
37-
"request": "launch",
38-
"cwd": "${workspaceFolder}",
39-
"runtimeExecutable": "npm",
40-
"runtimeArgs": [
41-
"run-script", "debug"
42-
],
43-
"port": 9229
44-
}
45-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15+
"preLaunchTask": "npm: compile"
16+
}
17+
]
4618
}

.vscode/settings.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
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-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off",
11-
"cSpell.words": [
12-
"wasm"
13-
]
14-
}
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off",
11+
"cSpell.words": ["wasm"]
12+
}

.vscode/tasks.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
2020
}

eslint.config.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import eslintJs from "@eslint/js";
2+
import eslintPrettier from "eslint-config-prettier/flat";
3+
import eslintTs from "typescript-eslint";
4+
5+
export default eslintTs.config(
6+
eslintJs.configs.recommended,
7+
eslintTs.configs.recommendedTypeChecked,
8+
eslintPrettier,
9+
{
10+
languageOptions: {
11+
parser: eslintTs.parser,
12+
ecmaVersion: "latest",
13+
sourceType: "module",
14+
parserOptions: {
15+
projectService: true,
16+
},
17+
},
18+
19+
rules: {
20+
"@typescript-eslint/consistent-type-imports": "error",
21+
"@typescript-eslint/naming-convention": "error",
22+
"@typescript-eslint/no-unused-vars": [
23+
"warn",
24+
{
25+
argsIgnorePattern: "^_",
26+
caughtErrorsIgnorePattern: "^_",
27+
},
28+
],
29+
"no-warning-comments": "warn",
30+
curly: "error",
31+
eqeqeq: [
32+
"error",
33+
"always",
34+
{
35+
null: "never",
36+
},
37+
],
38+
},
39+
},
40+
{
41+
files: ["eslint.config.ts"],
42+
extends: [eslintTs.configs.disableTypeChecked],
43+
}
44+
);

0 commit comments

Comments
 (0)