From 6a67fe2abef72c32ec7ab04a964836f96b700edd Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Thu, 12 Oct 2023 20:42:13 +0300 Subject: [PATCH] Apply strict rules --- test/index.test.mts | 2 +- tsconfig.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/index.test.mts b/test/index.test.mts index 089d577..b777088 100644 --- a/test/index.test.mts +++ b/test/index.test.mts @@ -17,7 +17,7 @@ async function buildServer(install: boolean, env: string): Promise app.get('/test', (req, res): void => { res.json({ - s: req.query.s, + s: req.query['s'], debug: true, }); }); diff --git a/tsconfig.json b/tsconfig.json index 0a79b2b..ba74a54 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,11 @@ "noUnusedLocals": true, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "exactOptionalPropertyTypes": true, "esModuleInterop": true, "resolveJsonModule": false },