From daf2b4dcf0e83bdc7bf31c9f9d0f53dee55f0d12 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 29 Jan 2026 13:05:23 +0100 Subject: [PATCH 1/5] Newly initialized TS sites should use "strict: true" --- .../templates/classic-typescript/tsconfig.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/create-docusaurus/templates/classic-typescript/tsconfig.json b/packages/create-docusaurus/templates/classic-typescript/tsconfig.json index 920d7a6523b8..aceae0dd36e4 100644 --- a/packages/create-docusaurus/templates/classic-typescript/tsconfig.json +++ b/packages/create-docusaurus/templates/classic-typescript/tsconfig.json @@ -1,8 +1,11 @@ +// This file is not used by "docusaurus start/build" commands. +// It is here to improve your IDE experience (type-checking, autocompletion...), +// and can also run the package.json "typecheck" script manually. { - // This file is not used in compilation. It is here just for a nice editor experience. "extends": "@docusaurus/tsconfig", "compilerOptions": { - "baseUrl": "." + "baseUrl": ".", + "strict": true }, "exclude": [".docusaurus", "build"] } From 0687d34d0db13101db400eb7efc3f7887f09e7c9 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 29 Jan 2026 13:19:21 +0100 Subject: [PATCH 2/5] add missing React types --- .../create-docusaurus/templates/classic-typescript/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/create-docusaurus/templates/classic-typescript/package.json b/packages/create-docusaurus/templates/classic-typescript/package.json index 7d01472f6bbf..a6b52a1aa5ed 100644 --- a/packages/create-docusaurus/templates/classic-typescript/package.json +++ b/packages/create-docusaurus/templates/classic-typescript/package.json @@ -27,6 +27,7 @@ "@docusaurus/module-type-aliases": "3.9.2", "@docusaurus/tsconfig": "3.9.2", "@docusaurus/types": "3.9.2", + "@types/react": "^19.0.0", "typescript": "~5.6.2" }, "browserslist": { From 093f98e80af893ff603de6948596178543738c73 Mon Sep 17 00:00:00 2001 From: slorber <749374+slorber@users.noreply.github.com> Date: Thu, 29 Jan 2026 12:24:55 +0000 Subject: [PATCH 3/5] refactor: apply lint autofix --- yarn.lock | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 19cd653d21ab..625df8c3a644 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4617,7 +4617,14 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.2.15": +"@types/react@*", "@types/react@^19.0.0": + version "19.2.10" + resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.10.tgz#f3ea799e6b4cebad6dfd231c238fc9de7652e2d2" + integrity sha512-WPigyYuGhgZ/cTPRXB2EwUw+XvsRA3GqHlsP4qteqrnnjDrApbS7MxcGr/hke5iUoeB7E/gQtrs9I37zAJ0Vjw== + dependencies: + csstype "^3.2.2" + +"@types/react@^18.2.15": version "18.3.12" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.12.tgz#99419f182ccd69151813b7ee24b792fe08774f60" integrity sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw== @@ -7267,10 +7274,10 @@ cssstyle@^2.3.0: dependencies: cssom "~0.3.6" -csstype@^3.0.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" - integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== +csstype@^3.0.2, csstype@^3.2.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.2.3.tgz#ec48c0f3e993e50648c86da559e2610995cf989a" + integrity sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ== cytoscape-cose-bilkent@^4.1.0: version "4.1.0" From d17a030dd6b7a1b4e2969264eebd014e743a8b23 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 29 Jan 2026 13:34:57 +0100 Subject: [PATCH 4/5] empty From a6bba41a5e1e1eadcf143cd946323dee3e6be18d Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 29 Jan 2026 17:56:43 +0100 Subject: [PATCH 5/5] update lockfile --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 7ef3380fafb4..fa426bd31fb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4612,7 +4612,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^19.2.10": +"@types/react@*", "@types/react@^19.0.0", "@types/react@^19.2.10": version "19.2.10" resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.10.tgz#f3ea799e6b4cebad6dfd231c238fc9de7652e2d2" integrity sha512-WPigyYuGhgZ/cTPRXB2EwUw+XvsRA3GqHlsP4qteqrnnjDrApbS7MxcGr/hke5iUoeB7E/gQtrs9I37zAJ0Vjw==