mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-21 20:49:10 +01:00
SERVER-68594 Added sensible vscode linting/autocomplete configuration
This commit is contained in:
parent
3a83033271
commit
5e9efe1415
12
.gitignore
vendored
12
.gitignore
vendored
@ -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
|
||||
|
62
.vscode/linux-virtual-workstation.code-workspace
vendored
Normal file
62
.vscode/linux-virtual-workstation.code-workspace
vendored
Normal file
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"eslint": "^8.28.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user