From 2897b908fd8a5126e7ade152988d1a7b4126a1fb Mon Sep 17 00:00:00 2001 From: James Murdza Date: Mon, 21 Oct 2024 13:51:18 -0600 Subject: [PATCH] chore: add code formatting settings --- .prettierignore | 3 +++ .vscode/settings.json | 8 ++++++++ frontend/.prettierrc | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .prettierignore create mode 100644 .vscode/settings.json diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4563529 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +backend/ai/** +backend/database/** +backend/storage/** \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4b81cce --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit" + } +} diff --git a/frontend/.prettierrc b/frontend/.prettierrc index 42830e2..6449bfb 100644 --- a/frontend/.prettierrc +++ b/frontend/.prettierrc @@ -1,5 +1,6 @@ { "tabWidth": 2, "semi": false, - "singleQuote": false + "singleQuote": false, + "insertFinalNewline": true } \ No newline at end of file