From 730c6e4c55aa094cc87202e6ae19746fa8ee6536 Mon Sep 17 00:00:00 2001 From: Kyle Morel Date: Thu, 2 Nov 2023 16:31:34 -0700 Subject: [PATCH] Add workspace default formatters and extensions --- .github/CODEOWNERS | 2 +- .gitignore | 1 - .vscode/extensions.json | 11 +++++++++++ .vscode/settings.json | 23 +++++++++++++++++++++++ app/.eslintrc.js | 1 + 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cd857725..461f5a95 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ # These users will be the default owners for everything in the repo. # Unless a later match takes precedence, the following users will be # requested for review when someone opens a pull request. -* @jujaga @norrisng-bc @TimCsaky @jatindersingh93 +* @jujaga @norrisng-bc @TimCsaky @jatindersingh93 @wilwong89 @kyle1morel diff --git a/.gitignore b/.gitignore index d95ee2a1..9aada915 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ yarn-error.log* # Editor directories and files .idea -.vscode *.iml *.suo *.ntvs* diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..a14db9f6 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,11 @@ +{ + "recommendations": [ + "bierner.markdown-preview-github-styles", + "davidanson.vscode-markdownlint", + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "editorconfig.editorconfig", + "redhat.vscode-yaml", + "ryanluker.vscode-coverage-gutters", + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..1884b3a5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,23 @@ +{ + "[html]": { + "editor.defaultFormatter": "vscode.html-language-features" + }, + "[javascript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[jsonc]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[typescript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + }, + "coverage-gutters.showGutterCoverage": false, + "coverage-gutters.showLineCoverage": true, + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.formatOnSave": true, + "eslint.format.enable": true, + "files.insertFinalNewline": true, +} diff --git a/app/.eslintrc.js b/app/.eslintrc.js index 08c956ac..a6357904 100644 --- a/app/.eslintrc.js +++ b/app/.eslintrc.js @@ -21,6 +21,7 @@ module.exports = { 'SwitchCase': 1 }], 'linebreak-style': ['error', 'unix'], + 'max-len': ['warn', { code: 120, comments: 120, ignoreUrls: true }], 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn', quotes: ['error', 'single'],