diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .vscode/settings.json | 75 |
2 files changed, 75 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index cef8e6b81e2..651c1712063 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 00000000000..0aa316cd929 --- /dev/null +++ b/.vscode/settings.json @@ -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 |