From fb8d516e96b2b751225b51cc5b36926ad0bb66b6 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 14 Dec 2022 08:24:32 +0100 Subject: [PATCH] Add project files for the server --- packages/server/.eslintrc.cjs | 13 +++++++++++++ packages/server/app.jsconfig.json | 11 +++++++++++ packages/server/eslint.jsconfig.json | 6 ++++++ packages/server/src/main.js | 0 packages/server/tsconfig.base.json | 3 +++ packages/server/tsconfig.json | 12 ++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 packages/server/.eslintrc.cjs create mode 100644 packages/server/app.jsconfig.json create mode 100644 packages/server/eslint.jsconfig.json create mode 100644 packages/server/src/main.js create mode 100644 packages/server/tsconfig.base.json create mode 100644 packages/server/tsconfig.json diff --git a/packages/server/.eslintrc.cjs b/packages/server/.eslintrc.cjs new file mode 100644 index 0000000..dffa289 --- /dev/null +++ b/packages/server/.eslintrc.cjs @@ -0,0 +1,13 @@ +const { join } = require("node:path"); + +module.exports = { + env: { + browser: true + }, + parserOptions: { + project: [ + join(__dirname, "app.jsconfig.json"), + join(__dirname, "eslint.jsconfig.json") + ] + } +}; diff --git a/packages/server/app.jsconfig.json b/packages/server/app.jsconfig.json new file mode 100644 index 0000000..07b883f --- /dev/null +++ b/packages/server/app.jsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "composite": true + }, + "include": [ + "./src/**/*" + ] +} diff --git a/packages/server/eslint.jsconfig.json b/packages/server/eslint.jsconfig.json new file mode 100644 index 0000000..f7b8742 --- /dev/null +++ b/packages/server/eslint.jsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.base.json", + "include": [ + "./.eslintrc.cjs" + ] +} diff --git a/packages/server/src/main.js b/packages/server/src/main.js new file mode 100644 index 0000000..e69de29 diff --git a/packages/server/tsconfig.base.json b/packages/server/tsconfig.base.json new file mode 100644 index 0000000..02ec15a --- /dev/null +++ b/packages/server/tsconfig.base.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tsconfig.base.json" +} diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json new file mode 100644 index 0000000..d16ea8d --- /dev/null +++ b/packages/server/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "./tsconfig.base.json", + "references": [ + { + "path": "./app.jsconfig.json" + }, + { + "path": "./eslint.jsconfig.json" + } + ], + "include": [] +}