From 945098d730a78de8b85b67cc62e0c3291ec26bab Mon Sep 17 00:00:00 2001 From: Dan Steren Date: Wed, 29 Nov 2023 09:54:28 -0700 Subject: [PATCH 1/2] Add editorconfig This ensures we have trailing newlines and no trailing whitespace. --- .editorconfig | 9 +++++++++ .gitignore | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..677e36e295 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.gitignore b/.gitignore index d22f225cd9..1d1a83096a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .dfx .DS_Store -.editorconfig .vscode/* dist node_modules From 6e978a10b1dd4920787b55da64a0cbd2d4b3f691 Mon Sep 17 00:00:00 2001 From: Dan Steren Date: Wed, 29 Nov 2023 09:56:27 -0700 Subject: [PATCH 2/2] Enumerate recommended VS Code extensions All team members should install these extensions if using VS Code. --- .gitignore | 1 + .vscode/extensions.json | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index 1d1a83096a..2e36fa6f2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .dfx .DS_Store .vscode/* +!.vscode/extensions.json dist node_modules target diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..7562d9153d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "bierner.comment-tagged-templates", + "dbaeumer.vscode-eslint", + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "rust-lang.rust-analyzer" + ] +}