From 7ced7e909d25ae67768c0ed28a72abceba4de043 Mon Sep 17 00:00:00 2001 From: Noley Holland Date: Tue, 27 Oct 2026 13:01:35 -0700 Subject: [PATCH 1/3] Set up typescript tooling + update docs --- .eslintrc.json | 22 ++ docs/de/contributing/index.md | 4 + docs/en/contributing/index.md | 4 + nodes/tsconfig.json | 16 + package-lock.json | 530 +++++++++++++++++++++++++++++++++- package.json | 12 +- ui/jsconfig.json | 19 -- ui/tsconfig.json | 16 + 8 files changed, 595 insertions(+), 28 deletions(-) create mode 100644 nodes/tsconfig.json delete mode 100644 ui/jsconfig.json create mode 100644 ui/tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index 897564c50..25ceb311b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,13 @@ "ecmaVersion": 2022 }, "ignorePatterns": ["dist/", "*.svg", "*.xml"], + "settings": { + "import/resolver": { + "node": { + "extensions": [".mjs", ".js", ".json", ".node", ".ts"] + } + } + }, "rules": { // Inbuilt "indent": ["error", 4], @@ -88,6 +95,9 @@ "commonjs": false }, "parserOptions": { + "parser": { + "ts": "@typescript-eslint/parser" + }, "sourceType": "module", "ecmaVersion": 2022 }, @@ -139,6 +149,18 @@ "promise/always-return": "off", "promise/catch-or-return": "off" } + }, + + { + "files": "*.ts", + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "rules": { + "no-undef": "off", + "no-redeclare": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "error" + } } ] } diff --git a/docs/de/contributing/index.md b/docs/de/contributing/index.md index 71f82c4e6..4206509d7 100644 --- a/docs/de/contributing/index.md +++ b/docs/de/contributing/index.md @@ -104,7 +104,11 @@ Eine [VitePress](https://vitepress.dev/) Dokumentationsseite, die zur Erstellung ``` 7. Wechseln Sie in Ihrem geforkten Dashboard-Repository (auf Github) zum neuen Branch und [erstellen Sie eine Pull-Anfrage](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). +## TypeScript +TypeScript ist optional. In `/ui` können neue Dateien als `.ts` (oder mit `