]> source.dussan.org Git - sonarqube.git/commitdiff
[NO-JIRA] Add vscode settings (#10780)
authorSarath Nair <91882341+sarath-nair-sonarsource@users.noreply.github.com>
Thu, 21 Mar 2024 08:22:01 +0000 (09:22 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 21 Mar 2024 20:02:41 +0000 (20:02 +0000)
.gitignore
.vscode/settings.json [new file with mode: 0644]

index cef8e6b81e20650d83a91cd51c4b05ccc028dbbe..651c17120631659af10ebea934265a763df9e16c 100644 (file)
@@ -17,7 +17,6 @@ target/
 out/
 
 # ---- VS Code
-.vscode/
 *.code-workspace
 
 # Directories generated on build on Windows
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644 (file)
index 0000000..0aa316c
--- /dev/null
@@ -0,0 +1,75 @@
+{
+    "editor.codeActionsOnSave": {
+      "source.organizeImports": "explicit"
+    },
+    "editor.formatOnSave": true,
+    "editor.rulers": [100],
+    "editor.tabSize": 2,
+    "eslint.validate": [
+      "javascript",
+      "javascriptreact",
+      "typescript",
+      "typescriptreact"
+    ],
+    "eslint.workingDirectories": [{ "mode": "auto" }],
+    "files.exclude": {
+      "**/.awcache": true,
+      "**/.cache": true,
+      "**/.DS_Store": true,
+      "**/.git": true,
+      "**/.gradle": true,
+      "**/.hg": true,
+      "**/.sonarlint": true,
+      "**/.svn": true,
+      "**/.vscode": true,
+      "**/eslint-report.json": true,
+      "**/bower_components": true,
+      "**/build": true,
+      "**/CVS": true,
+      "**/node": true,
+      "**/node_modules": true,
+      "**/out": true,
+      "**/coverage": true,
+      "**/target": true
+    },
+    "javascript.preferences.importModuleSpecifier": "relative",
+    "typescript.preferences.importModuleSpecifier": "project-relative",
+    "javascript.updateImportsOnFileMove.enabled": "always",
+    "javascript.validate.enable": false,
+    "prettier.configPath": "server/sonar-web/.prettierrc",
+    "search.exclude": {
+      "**/build": true,
+      "**/target": true,
+      "**/.awcache": true,
+      "**/node_modules": true,
+      "**/bower_components": true,
+      "**/.sonarlint": true,
+      "**/flow-typed": true,
+      "**/yarn.lock": true,
+      "**/coverage": true,
+      "**/*.js.snap": true,
+      "**/*.ts.snap": true
+    },
+    "typescript.updateImportsOnFileMove.enabled": "always",
+    "[javascriptreact]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[html]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[javascript]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[typescriptreact]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[typescript]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[css]": {
+      "editor.defaultFormatter": "esbenp.prettier-vscode"
+    },
+    "[markdown]": {
+      "editor.defaultFormatter": null
+    },
+  }
\ No newline at end of file