From b7e7ae1d9d8cff29bc33fb13fa42e5b9b6084bfa Mon Sep 17 00:00:00 2001 From: "Sarin, Pankaj, M.D" Date: Sat, 16 Dec 2023 13:29:50 -0500 Subject: [PATCH 1/2] Ignore Mac .DS_Store files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ff9f306c5..d7f91ecce 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ server.json /.vscode .env assets/img/opengraph/ +.DS_Store From b2a9a5eee9aa93595736cd587de2048da0a6235e Mon Sep 17 00:00:00 2001 From: "Sarin, Pankaj, M.D" Date: Sat, 20 Apr 2024 18:29:00 -0400 Subject: [PATCH 2/2] Adding .prettier / .cflintrc rules Update .gitignore to match recs from www.gitignore.io --- .cflintrc | 14 ++++++++++++++ .gitignore | 13 ++++++++++++- .prettierignore | 11 +++++++++++ .prettierrc | 17 +++++++++++++++++ 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .cflintrc create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.cflintrc b/.cflintrc new file mode 100644 index 000000000..61bf42d00 --- /dev/null +++ b/.cflintrc @@ -0,0 +1,14 @@ +{ + "rule": [], + "excludes": [ + {"code": "UNQUOTED_STRUCT_KEY"}, + {"code": "STRUCT_ARRAY_NOTATION"}, + {"code": "VAR_TOO_SHORT"}, + {"code": "VAR_TOO_LONG"}, + {"code": "GLOBAL_VAR"}, + {"code": "VAR_INVALID_NAME"} + ], + "includes": [], + "inheritParent": false, + "parameters": {} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index d7f91ecce..78187df68 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,18 @@ server-*.json server.json *.sublime-workspace *.sublime-project -/.vscode .env assets/img/opengraph/ .DS_Store + +# Recommended settings for VSCode at https://www.gitignore.io/api/visualstudiocode +### VisualStudioCode ### +.vscode/**/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +### VisualStudioCode Patch ### +# Ignore all local history of files +**/.history diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..1b716ddc8 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +# Project related files +.DS_Store +.thumbs.db + +# Editor directories and files +.vscode +.idea +*.suo +*.ntvs* +*.njsproj +*.sln \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..21dbcbf72 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,17 @@ +{ + "arrowParens": "avoid", + "bracketSpacing": true, + "htmlWhitespaceSensitivity": "css", + "insertPragma": false, + "jsxBracketSameLine": false, + "jsxSingleQuote": false, + "parser": "json", + "printWidth": 80, + "proseWrap": "preserve", + "requirePragma": false, + "semi": true, + "singleQuote": false, + "tabWidth": 4, + "trailingComma": "none", + "useTabs": true + } \ No newline at end of file