From 4380b118aeddf9ad1bffd4b6ff1bbb6c41120fab Mon Sep 17 00:00:00 2001 From: Splines Date: Fri, 17 Nov 2023 23:33:08 +0100 Subject: [PATCH] Add settings.json and extensions.json with some defaults --- .vscode/extensions.json | 7 ++++++ .vscode/settings.json | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..9065ce078 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "shopify.ruby-lsp", + "streetsidesoftware.code-spell-checker", + "dbaeumer.vscode-eslint" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..c4a82c87a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,56 @@ +{ + ////////////////////////////////////// + // ESLint + ////////////////////////////////////// + // https://eslint.style/guide/faq#how-to-auto-format-on-save + // https://github.com/microsoft/vscode-eslint#settings-options + "editor.formatOnSave": true, + "eslint.format.enable": true, + "[javascript]": { + "editor.formatOnSave": false, // to avoid formatting twice (ESLint + VSCode) + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + ////////////////////////////////////// + // Ruby + ////////////////////////////////////// + "[ruby]": { + "editor.defaultFormatter": "Shopify.ruby-lsp" + }, + "rubyLsp.formatter": "rubocop", + "rubyLsp.rubyVersionManager": "rbenv", + "rubyLsp.enabledFeatures": { + "codeActions": true, + "diagnostics": true, + "documentHighlights": true, + "documentLink": true, + "documentSymbols": true, + "foldingRanges": true, + "formatting": true, + "hover": true, + "inlayHint": true, + "onTypeFormatting": true, + "selectionRanges": true, + "semanticHighlighting": true, + "completion": true, + "codeLens": true, + "definition": true + }, + "rubyLsp.enableExperimentalFeatures": true, + ////////////////////////////////////// + // VSCode + ////////////////////////////////////// + "files.exclude": { + "node_modules/": true, + "pdfcomprezzor/": true, + "coverage/": true, + }, + ////////////////////////////////////// + // Spell Checker + ////////////////////////////////////// + "cSpell.words": [ + "turbolinks" + ] +} \ No newline at end of file