From 78062bb75c2af35742303ec8e3473f149672156f Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 6 May 2026 22:10:45 +0200 Subject: [PATCH] chore(lint): enable type-aware linting Signed-off-by: Erik Michelson --- commons/.oxlintrc.json | 5 +++++ commons/tsconfig.cjs.json | 2 +- commons/tsconfig.esm.json | 2 +- commons/{tsconfig.base.json => tsconfig.json} | 0 .../{tsconfig.base.json.license => tsconfig.json.license} | 0 database/.oxlintrc.json | 5 +++++ database/jest.config.json | 2 +- database/tsconfig.cjs.json | 7 +++++-- database/{tsconfig.base.json => tsconfig.json} | 0 .../{tsconfig.base.json.license => tsconfig.json.license} | 0 database/tsconfig.test.json | 4 ---- database/tsconfig.test.json.license | 3 --- html-to-react/.oxlintrc.json | 5 +++++ markdown-it-plugins/.oxlintrc.json | 5 +++++ 14 files changed, 28 insertions(+), 12 deletions(-) rename commons/{tsconfig.base.json => tsconfig.json} (100%) rename commons/{tsconfig.base.json.license => tsconfig.json.license} (100%) rename database/{tsconfig.base.json => tsconfig.json} (100%) rename database/{tsconfig.base.json.license => tsconfig.json.license} (100%) delete mode 100644 database/tsconfig.test.json delete mode 100644 database/tsconfig.test.json.license diff --git a/commons/.oxlintrc.json b/commons/.oxlintrc.json index 6f800be6a..67887c7c5 100644 --- a/commons/.oxlintrc.json +++ b/commons/.oxlintrc.json @@ -14,5 +14,10 @@ "env": { "node": true, "jest": true + }, + "options": { + "typeAware": true, + "typeCheck": true, + "maxWarnings": 0 } } diff --git a/commons/tsconfig.cjs.json b/commons/tsconfig.cjs.json index bfca5c355..cb2d52a4e 100644 --- a/commons/tsconfig.cjs.json +++ b/commons/tsconfig.cjs.json @@ -1,5 +1,5 @@ { - "extends" : "./tsconfig.base.json", + "extends" : "./tsconfig.json", "compilerOptions": { "module": "CommonJS", "target": "ES2024", diff --git a/commons/tsconfig.esm.json b/commons/tsconfig.esm.json index f8b6287b6..f3063c83c 100644 --- a/commons/tsconfig.esm.json +++ b/commons/tsconfig.esm.json @@ -1,5 +1,5 @@ { - "extends" : "./tsconfig.base.json", + "extends" : "./tsconfig.json", "compilerOptions": { "module": "NodeNext", "target" : "esnext", diff --git a/commons/tsconfig.base.json b/commons/tsconfig.json similarity index 100% rename from commons/tsconfig.base.json rename to commons/tsconfig.json diff --git a/commons/tsconfig.base.json.license b/commons/tsconfig.json.license similarity index 100% rename from commons/tsconfig.base.json.license rename to commons/tsconfig.json.license diff --git a/database/.oxlintrc.json b/database/.oxlintrc.json index ffaf1d5a9..95b7f9e43 100644 --- a/database/.oxlintrc.json +++ b/database/.oxlintrc.json @@ -6,5 +6,10 @@ ], "env": { "node": true + }, + "options": { + "typeAware": true, + "typeCheck": true, + "maxWarnings": 0 } } diff --git a/database/jest.config.json b/database/jest.config.json index af756215c..6b9c44c0e 100644 --- a/database/jest.config.json +++ b/database/jest.config.json @@ -19,7 +19,7 @@ "^.+\\.tsx?$" : [ "ts-jest", { - "tsconfig" : "tsconfig.test.json", + "tsconfig" : "tsconfig.cjs.json", "useESM" : true } ] diff --git a/database/tsconfig.cjs.json b/database/tsconfig.cjs.json index a88d7f768..1786477cc 100644 --- a/database/tsconfig.cjs.json +++ b/database/tsconfig.cjs.json @@ -1,10 +1,13 @@ { - "extends" : "./tsconfig.base.json", + "extends" : "./tsconfig.json", "compilerOptions": { "module": "CommonJS", "target": "ES2015", "outDir": "dist/cjs", "declarationDir": "dist/cjs", "moduleResolution": "node" - } + }, + "exclude": [ + "dist" + ] } diff --git a/database/tsconfig.base.json b/database/tsconfig.json similarity index 100% rename from database/tsconfig.base.json rename to database/tsconfig.json diff --git a/database/tsconfig.base.json.license b/database/tsconfig.json.license similarity index 100% rename from database/tsconfig.base.json.license rename to database/tsconfig.json.license diff --git a/database/tsconfig.test.json b/database/tsconfig.test.json deleted file mode 100644 index 23ca2cfd7..000000000 --- a/database/tsconfig.test.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends" : "./tsconfig.cjs.json", - "exclude": ["./dist"] -} diff --git a/database/tsconfig.test.json.license b/database/tsconfig.test.json.license deleted file mode 100644 index 52af02f4b..000000000 --- a/database/tsconfig.test.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2023 Tilman Vatteroth - -SPDX-License-Identifier: CC0-1.0 diff --git a/html-to-react/.oxlintrc.json b/html-to-react/.oxlintrc.json index 6f800be6a..67887c7c5 100644 --- a/html-to-react/.oxlintrc.json +++ b/html-to-react/.oxlintrc.json @@ -14,5 +14,10 @@ "env": { "node": true, "jest": true + }, + "options": { + "typeAware": true, + "typeCheck": true, + "maxWarnings": 0 } } diff --git a/markdown-it-plugins/.oxlintrc.json b/markdown-it-plugins/.oxlintrc.json index 6f800be6a..67887c7c5 100644 --- a/markdown-it-plugins/.oxlintrc.json +++ b/markdown-it-plugins/.oxlintrc.json @@ -14,5 +14,10 @@ "env": { "node": true, "jest": true + }, + "options": { + "typeAware": true, + "typeCheck": true, + "maxWarnings": 0 } }