SERVER-68594 Added vscode defaults to v6.0

This commit is contained in:
Alexander Neben 2023-01-21 15:51:30 +00:00 committed by Evergreen Agent
parent 5d649f37a0
commit 053c745ed3
4 changed files with 85 additions and 1 deletions

5
.gitignore vendored
View File

@ -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

View File

@ -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"
]
}
}

11
jsconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"disableSizeLimit": true,
"target": "ES6"
},
"exclude": [
"node_modules",
"src/third_party"
]
}

5
package.json Normal file
View File

@ -0,0 +1,5 @@
{
"dependencies": {
"eslint": "7.22.0"
}
}