diff --git a/.vscode/settings.json b/.vscode/settings.json index e4831db738b6..75ad91c657f1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,21 @@ { "deepscan.enable": true, - "typescript.tsdk": "./code/node_modules/typescript/lib" + "eslint.workingDirectories": ["./code", "./scripts"], + "typescript.tsdk": "./code/node_modules/typescript/lib", + "[javascript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[javascriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[typescript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[typescriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, } diff --git a/code/.vscode/settings.json b/code/.vscode/settings.json index 25fa6215fdd3..2a8b89c7e53a 100644 --- a/code/.vscode/settings.json +++ b/code/.vscode/settings.json @@ -1,3 +1,21 @@ { - "typescript.tsdk": "node_modules/typescript/lib" + "deepscan.enable": true, + "eslint.workingDirectories": [".", "../scripts"], + "typescript.tsdk": "node_modules/typescript/lib", + "[javascript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[javascriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[typescript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + }, + "[typescriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true + } }