diff --git a/.gitignore b/.gitignore index bafd2b62441..e021d1059b9 100644 --- a/.gitignore +++ b/.gitignore @@ -60,7 +60,6 @@ venv /src/third_party/*/*.lastbuildstate /buildscripts/libdeps/graph_visualizer_web_stack/build /buildscripts/libdeps/graph_visualizer_web_stack/node_modules -package-lock.json libdeps.graphml build-metrics.json config.log @@ -168,8 +167,11 @@ CMakeLists.txt # XCode projects .xcworkspace -# Visual Studio and VSCode projects -.vscode/ +# VSCode projects +.vscode/** +!.vscode/linux-virtual-workstation.code-workspace + +# Visual Studio projects .vs/ /x64/ @@ -253,3 +255,7 @@ report.json # suggested resmoke binary location dist-test/ + +# node extra stuff (for someone installing eslint) +node_modules/ +package-lock.json diff --git a/.vscode/linux-virtual-workstation.code-workspace b/.vscode/linux-virtual-workstation.code-workspace new file mode 100644 index 00000000000..dc1502a4998 --- /dev/null +++ b/.vscode/linux-virtual-workstation.code-workspace @@ -0,0 +1,62 @@ +{ + "folders": [ + { + "path": ".." + } + ], + "settings": { + "clangd.arguments": [ + "--query-driver=/opt/mongodbtoolchain/v4/bin/clang++", + "-j=4" + ], + "clangd.checkUpdates": true, + "clang-format.executable": "/opt/mongodbtoolchain/v3/bin/clang-format", + "clang-tidy.executable": "/opt/mongodbtoolchain/v4/bin/clang-tidy", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "eslint.validate": [ + "javascript" + ], + "python.autoComplete.extraPaths": [ + "/opt/mongodbtoolchain/v4/share/gcc-11.3.0/python", + "src/third_party/scons-3.1.2/scons-local-3.1.2" + ], + "python.defaultInterpreterPath": "python3-venv/bin/python", + "python.formatting.yapfPath": "python3-venv/bin/yapf", + "python.formatting.provider": "yapf", + "python.linting.pylintEnabled": true, + "python.analysis.extraPaths": [ + "/opt/mongodbtoolchain/v4/share/gcc-11.3.0/python", + "src/third_party/scons-3.1.2/scons-local-3.1.2" + ], + "python.linting.mypyEnabled": true, + "python.linting.mypyPath": "python3-venv/bin/mypy", + "[c]": { + "editor.defaultFormatter": "xaver.clang-format", + "editor.formatOnSave": true, + }, + "[cpp]": { + "editor.defaultFormatter": "xaver.clang-format", + "editor.formatOnSave": true, + }, + "[javascript]": { + "editor.defaultFormatter": "xaver.clang-format", + "editor.formatOnSave": true, + }, + "files.associations": { + "SConstruct": "python", + "SConscript": "python", + "*.idl": "yaml", + }, + }, + "extensions": { + "recommendations": [ + "llvm-vs-code-extensions.vscode-clangd", + "dbaeumer.vscode-eslint", + "ms-python.python", + "xaver.clang-format", + "notskm.clang-tidy" + ] + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000000..ba88e9ddd9e --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "eslint": "^8.28.0" + } +}