diff --git a/.vscode/launch.json b/.vscode/launch.json index 9237392..ac924c0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,20 +2,20 @@ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ + version: "0.2.0", + configurations: [ { - "type": "node", - "request": "launch", - "name": "Mocha Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": ["--no-timeouts", "--colors", "--require", "ts-node/register"], - "skipFiles": ["async_hooks.js", "inspector_async_hook.js"], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" + type: "node", + request: "launch", + name: "Mocha Tests", + program: "${workspaceFolder}/node_modules/mocha/bin/_mocha", + args: ["--no-timeouts", "--colors", "--require", "ts-node/register"], + skipFiles: ["async_hooks.js", "inspector_async_hook.js"], + env: { + TS_NODE_COMPILER_OPTIONS: '{"module":"commonjs"}', }, - "console": "integratedTerminal", - "smartStep": false - } - ] + console: "integratedTerminal", + smartStep: false, + }, + ], } diff --git a/.vscode/settings.json b/.vscode/settings.json index 25fa621..3fe865a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", } diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..6df1f26 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + version: "2.0.0", + tasks: [ + { + type: "npm", + script: "watch", + problemMatcher: ["$tsc-watch"], + isBackground: true, + }, + ], +} diff --git a/package.json b/package.json index 18f38ca..e0ba201 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@commitlint/cli": "^7.2.1", "@commitlint/config-conventional": "^7.1.2", "@sourcegraph/extension-api-stubs": "^0.2.0", - "@sourcegraph/prettierrc": "^2.2.0", + "@sourcegraph/prettierrc": "^3.0.0", "@sourcegraph/tsconfig": "^4.0.0", "@sourcegraph/tslint-config": "^13.0.0", "@types/lodash": "4.14.124", diff --git a/tsconfig.json b/tsconfig.json index 8baad41..911afbf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,17 @@ { - "extends": "@sourcegraph/tsconfig", - "compilerOptions": { - "target": "es2018", - "moduleResolution": "node", - "typeRoots": ["src/types", "node_modules/@types"], - "module": "esnext", - "lib": ["esnext", "webworker"], - "sourceMap": true, - "declaration": true, - "declarationMap": true, - "outDir": "dist", - "rootDir": "src", - "esModuleInterop": true, - "allowSyntheticDefaultImports": true - } + extends: "@sourcegraph/tsconfig", + compilerOptions: { + target: "es2018", + moduleResolution: "node", + typeRoots: ["src/types", "node_modules/@types"], + module: "esnext", + lib: ["esnext", "webworker"], + sourceMap: true, + declaration: true, + declarationMap: true, + outDir: "dist", + rootDir: "src", + esModuleInterop: true, + allowSyntheticDefaultImports: true, + }, } diff --git a/yarn.lock b/yarn.lock index 007e4db..e8a03da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -427,10 +427,10 @@ resolved "https://registry.npmjs.org/@sourcegraph/extension-api-types/-/extension-api-types-2.0.0.tgz#b38145521c0549b2be300df53bac48b648ccbc2d" integrity sha512-Te7F1RQJLBH4C8wQ2xz0nPC2vpe13F80V+Yv+c3GySOoh4DcLNN4P5u51Kh4aZPqeS5DJ7CKvHyX2SM/1EBXNg== -"@sourcegraph/prettierrc@^2.2.0": - version "2.2.0" - resolved "https://registry.npmjs.org/@sourcegraph/prettierrc/-/prettierrc-2.2.0.tgz#af4a6fcd465b0a39a07ffbd8f2d3414d01e603e8" - integrity sha512-kRdHxdAppxYnN7qAQjNTyuG05pjYHFtEUquZauXVXBeaGB4sye3uSkb8wgi34jeaUHG/gWp2f5hQgCCBMizjjA== +"@sourcegraph/prettierrc@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sourcegraph/prettierrc/-/prettierrc-3.0.0.tgz#716b64b287565f98f539f76bea206912ab4d03b3" + integrity sha512-ziLujsC3IESHGYdtiJ7yVjte9i7mr6jKWTYtCVqgOWeY1Er0/xsQ/sdZIyK61tD282wvd7VjS4pk5RoGEN7biw== "@sourcegraph/tsconfig@^4.0.0": version "4.0.0"