From 0409ea966f24133e39975448f81dbfb01d8d3b0f Mon Sep 17 00:00:00 2001 From: Aaron Meese Date: Sun, 26 Jan 2025 14:41:29 +0000 Subject: [PATCH 1/2] chore: add .gitignore Necessary for opening this repo in GitHub codespaces, as it automatically downloads all the dependencies. --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules From d3c6507099a7a3c61e0796ca22c57c13a2ff6940 Mon Sep 17 00:00:00 2001 From: Aaron Meese Date: Sun, 26 Jan 2025 14:42:03 +0000 Subject: [PATCH 2/2] feat: switch statement support Will resolve some linting errors discussed in https://github.com/os-js/osjs-server/pull/67. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 64d00c5..b123606 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ module.exports = { 'quotes': ['error', 'single'], 'linebreak-style': ['error', 'unix'], 'semi': ['error', 'always'], - 'indent': ['error', 2], + 'indent': ['error', 2, { 'SwitchCase': 1 }], 'radix': 1, 'eol-last': ['error', 'always'], 'consistent-return': 1,