From 7014caecf13d4536c42949776b69a6cb7288e7ff Mon Sep 17 00:00:00 2001 From: Valerii Petryniak <44531564+valerii15298@users.noreply.github.com> Date: Tue, 21 Oct 2025 08:07:41 +0300 Subject: [PATCH] feat(react): use `@tsconfig/strictest` (#4) --- pnpm-lock.yaml | 8 ++++++++ react/package.json | 1 + react/tsconfig.json | 10 +++------- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 80f58d2..4a3e12e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,6 +54,9 @@ importers: '@testing-library/react': specifier: ^16.3.0 version: 16.3.0(@testing-library/dom@10.4.1)(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@tsconfig/strictest': + specifier: ^2.0.6 + version: 2.0.6 '@types/node': specifier: ^24.7.2 version: 24.7.2 @@ -731,6 +734,9 @@ packages: '@types/react-dom': optional: true + '@tsconfig/strictest@2.0.6': + resolution: {integrity: sha512-tPOhmDhIUcDjvpDDYyiUdssP84Eqm7n5KxJe5J3/g+s6xoDIPAf+SIn06dhw7VkhxIvLOnhDDrX7tsqMHNEhDg==} + '@tybys/wasm-util@0.10.1': resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} @@ -2247,6 +2253,8 @@ snapshots: '@types/react': 19.2.2 '@types/react-dom': 19.2.2(@types/react@19.2.2) + '@tsconfig/strictest@2.0.6': {} + '@tybys/wasm-util@0.10.1': dependencies: tslib: 2.8.1 diff --git a/react/package.json b/react/package.json index b1e436b..6278b96 100644 --- a/react/package.json +++ b/react/package.json @@ -42,6 +42,7 @@ "devDependencies": { "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.0", + "@tsconfig/strictest": "^2.0.6", "@types/node": "^24.7.2", "@types/react": "^19.2.2", "@types/react-dom": "^19.2.2", diff --git a/react/tsconfig.json b/react/tsconfig.json index b98a1ab..5e9e89a 100644 --- a/react/tsconfig.json +++ b/react/tsconfig.json @@ -1,21 +1,17 @@ { + "extends": "@tsconfig/strictest/tsconfig.json", "compilerOptions": { "target": "esnext", "jsx": "react-jsx", - "lib": ["es2023"], + "lib": ["es2023", "DOM"], "moduleDetection": "force", "module": "preserve", "moduleResolution": "bundler", "resolveJsonModule": true, - "types": ["node"], - "strict": true, - "noUnusedLocals": true, + "types": [], "declaration": true, "emitDeclarationOnly": true, - "esModuleInterop": true, - "isolatedModules": true, "verbatimModuleSyntax": true, - "skipLibCheck": true }, "include": ["src"] } -- 2.51.2