summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2023-01-21 15:51:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-21 16:34:25 +0000
commit053c745ed3de8faa32f8b24fc1780a7521af932b (patch)
treee7dbee260c765b2cafd1ba94a454a9ebfd26bbe8
parent5d649f37a01511540d514110d694eb1ea3dfa18c (diff)
downloadmongo-053c745ed3de8faa32f8b24fc1780a7521af932b.tar.gz
SERVER-68594 Added vscode defaults to v6.0
-rw-r--r--.gitignore5
-rw-r--r--.vscode_defaults/linux-virtual-workstation.code-workspace65
-rw-r--r--jsconfig.json11
-rw-r--r--package.json5
4 files changed, 85 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 0c227d5625b..6e8a1bb304e 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
config.log
settings.py
@@ -234,3 +233,7 @@ default.profraw
# generated by gen_all_feature_flag_list.py
all_feature_flags.txt
+
+# node extra stuff (for someone installing eslint)
+node_modules/
+package-lock.json
diff --git a/.vscode_defaults/linux-virtual-workstation.code-workspace b/.vscode_defaults/linux-virtual-workstation.code-workspace
new file mode 100644
index 00000000000..3f691c0439c
--- /dev/null
+++ b/.vscode_defaults/linux-virtual-workstation.code-workspace
@@ -0,0 +1,65 @@
+{
+ "folders": [
+ {
+ "path": ".."
+ }
+ ],
+ "settings": {
+ "clangd.arguments": [
+ "--query-driver=/opt/mongodbtoolchain/v3/bin/clang++",
+ "--header-insertion=never",
+ "-j=4"
+ ],
+ "clangd.checkUpdates": true,
+ "clang-format.executable": "/opt/mongodbtoolchain/v3/bin/clang-format",
+ "clang-tidy.executable": "/opt/mongodbtoolchain/v3/bin/clang-tidy",
+ "editor.codeActionsOnSave": {
+ "source.fixAll.eslint": true
+ },
+ "eslint.validate": [
+ "javascript"
+ ],
+ "files.associations": {
+ "SConstruct": "python",
+ "SConscript": "python",
+ "*.idl": "yaml",
+ },
+ "files.insertFinalNewline": true,
+ "js/ts.implicitProjectConfig.target": "ES6",
+ "python.autoComplete.extraPaths": [
+ "/opt/mongodbtoolchain/v3/share/gcc-8.5.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/v3/share/gcc-8.5.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,
+ },
+ },
+ "extensions": {
+ "recommendations": [
+ "llvm-vs-code-extensions.vscode-clangd",
+ "dbaeumer.vscode-eslint",
+ "ms-python.python",
+ "xaver.clang-format",
+ "notskm.clang-tidy"
+ ]
+ }
+}
diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 00000000000..7f4f8da08c5
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "disableSizeLimit": true,
+ "target": "ES6"
+ },
+ "exclude": [
+ "node_modules",
+ "src/third_party"
+ ]
+}
diff --git a/package.json b/package.json
new file mode 100644
index 00000000000..305732073fe
--- /dev/null
+++ b/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "eslint": "7.22.0"
+ }
+}