diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..64efa291f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Running Renderer", + "type": "chrome", + "request": "attach", + "port": 9222, + "webRoot": "/", + "url": "http://localhost:3000/index.dev.html" + }, + { + "name": "Attach to Running Main", + "type": "node", + "request": "attach", + "port": 9229, + "sourceMaps": true + }, + { + "type": "node", + "request": "launch", + "name": "Launch Current Jest Suite", + "program": "${workspaceFolder}/desktop/node_modules/.bin/jest", + "args": ["--runInBand", "${relativeFile}"] + }, + { + "type": "node", + "cwd": "${fileDirname}", + "request": "launch", + "name": "Launch Current Script", + "args": ["${file}"], + "env": { + "TS_NODE_FILES": "true" + }, + "protocol": "inspector", + "internalConsoleOptions": "openOnSessionStart", + "runtimeArgs": ["--require", "ts-node/register"] + } + ], + "compounds": [ + { + "name": "Attach to All", + "configurations": ["Attach to Running Main", "Attach to Running Renderer"] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..ea091db77 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,28 @@ +{ + "eslint.enable": true, + "eslint.format.enable": true, + "eslint.lintTask.enable": true, + "eslint.packageManager": "yarn", + "eslint.codeActionsOnSave.mode": "all", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll": true + }, + "eslint.workingDirectories": [ + { + "mode": "auto" + } + ], + "[typescriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[typescript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[javascript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + } +} diff --git a/desktop/.vscode/launch.json b/desktop/.vscode/launch.json index 6d11fcd05..d7890c324 100644 --- a/desktop/.vscode/launch.json +++ b/desktop/.vscode/launch.json @@ -22,30 +22,25 @@ "name": "Launch Current Jest Suite", "program": "${workspaceFolder}/node_modules/.bin/jest", "args": ["--runInBand", "${relativeFile}"] - }, - { - "type": "node", - "request": "launch", - "name": "Launch Current Script", - "args": ["${file}"], - "env": { - "TS_NODE_FILES": "true" }, - "protocol": "inspector", - "internalConsoleOptions": "openOnSessionStart", - "runtimeArgs": [ - "--require", - "ts-node/register" - ] - } + { + "type": "node", + "cwd": "${fileDirname}", + "request": "launch", + "name": "Launch Current Script", + "args": ["${file}"], + "env": { + "TS_NODE_FILES": "true" + }, + "protocol": "inspector", + "internalConsoleOptions": "openOnSessionStart", + "runtimeArgs": ["--require", "ts-node/register"] + } ], "compounds": [ { - "name": "Attach to All", - "configurations": [ - "Attach to Running Main", - "Attach to Running Renderer" - ] + "name": "Attach to All", + "configurations": ["Attach to Running Main", "Attach to Running Renderer"] } -] + ] }