From 68ccda0c4b616c53a5d84f74fce30e2bc2b5b7fa Mon Sep 17 00:00:00 2001 From: gkatrakazas Date: Tue, 20 Oct 2026 14:14:46 +0300 Subject: [PATCH 1/2] chore: add typecheck script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c4c0d45..1acb3ae 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "yarn tsc", + "typecheck": "tsc --noEmit", "dev": "nodemon --config nodemon.json --exec \"yarn tsc && yarn start-debug\"", "dev-docker": "yarn nodemon --inspect=0.0.0.0:9259 --config nodemon.json --exec \"yarn tsc --outdir /app/dist && yarn start-debug\"", "start": "node -r source-map-support/register dist/src/app.js", From 76c92d53e63d765c2cc707c06f3bc16ea803d5ff Mon Sep 17 00:00:00 2001 From: gkatrakazas Date: Tue, 20 Oct 2026 14:19:37 +0300 Subject: [PATCH 2/2] chore: rely on strict for strict-mode compiler options --- tsconfig.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index e4853f0..d113263 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -88,14 +88,18 @@ /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + + /* Options enabled by "strict", listed for discoverability and future overrides — start. */ + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ - // "strictPropertyInitialization": false, /* Check for class properties that are declared but not set in the constructor. */ - "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ - "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ - "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + /* Options enabled by "strict" — end. */ + "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */