From 6a5bae436ae504cbc4da64e09c346b914d7bfba7 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 27 Dec 2024 13:45:00 +0100 Subject: [PATCH 1/3] [code-infra] Polish VS Code DX --- .editorconfig | 14 ++++++++++++++ .vscode/extensions.json | 20 ++++++++++++++++++++ .vscode/settings.json | 14 ++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 .editorconfig create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..94027c5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +insert_final_newline = true +max_line_length = 100 diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5ed5faf --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,20 @@ +{ + "recommendations": [ + // Formating + "esbenp.prettier-vscode", // Prettier + "editorconfig.editorconfig", // EditorConfig + + // Highlighting + "bradlc.vscode-tailwindcss", // Tailwind CSS + "unifiedjs.vscode-mdx", // MDX + "shardulm94.trailing-spaces", // Trailing spaces + "styled-components.vscode-styled-components", // styled() + + // Lint + "dbaeumer.vscode-eslint", // ESLint + "yoavbls.pretty-ts-errors", // TypeScript + "stylelint.vscode-stylelint", // Stylelint + "davidanson.vscode-markdownlint", // markdownlint + "chrischinchilla.vale-vscode", // Vale + ], +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e18e7f2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "files.trimTrailingWhitespace": true, + + // Root workspace only + "typescript.tsdk": "node_modules/typescript/lib", + "typescript.surveys.enabled": false, + "grammarly.selectors": [ + { + "language": "markdown", + "scheme": "file" + } + ] +} From 26e05435058b5bd5c2a34f5084d283a6e9cda3bd Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 27 Dec 2024 14:33:52 +0100 Subject: [PATCH 2/3] prettier --- .vscode/extensions.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5ed5faf..aa647b3 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -15,6 +15,6 @@ "yoavbls.pretty-ts-errors", // TypeScript "stylelint.vscode-stylelint", // Stylelint "davidanson.vscode-markdownlint", // markdownlint - "chrischinchilla.vale-vscode", // Vale - ], + "chrischinchilla.vale-vscode" // Vale + ] } From 78368f600fac14bc4328a6ad11638860c1799416 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 3 Jan 2025 22:40:03 +0100 Subject: [PATCH 3/3] Update .vscode/settings.json Signed-off-by: Olivier Tassinari --- .vscode/settings.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e18e7f2..9656d60 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,6 @@ "files.trimTrailingWhitespace": true, // Root workspace only - "typescript.tsdk": "node_modules/typescript/lib", "typescript.surveys.enabled": false, "grammarly.selectors": [ {