From 6dfeacc378e2f28d6e67b315b9e2acf80dbf8c3b Mon Sep 17 00:00:00 2001 From: Matthieu Morin Date: Tue, 4 Jun 2024 11:47:13 +0200 Subject: [PATCH] style(editorconfig and vscode(ium) settings): added formatting workspace settings --- .editorconfig | 10 ++++++++++ .gitignore | 18 +++++++++--------- .vscode/settings.json | 8 ++++++++ 3 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 .editorconfig create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..669640d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +tab_width = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore index f511a58..8e436ce 100644 --- a/.gitignore +++ b/.gitignore @@ -142,15 +142,15 @@ pnpm-debug.log* lerna-debug.log* # Editor directories and files -!.vscode/extensions.json -.vscode/* -.editorconfig -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? +# !.vscode/extensions.json +# .vscode/* +# .editorconfig +# .idea +# *.suo +# *.ntvs* +# *.njsproj +# *.sln +# *.sw? *.flock *.tmp diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..11e1d18 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnPaste": false, + "editor.formatOnSave": false, + "[json]": { "editor.formatOnSave": true }, + "[javascript]": { "editor.formatOnSave": true }, + "[typescript]": { "editor.formatOnSave": true } +}