Skip to content

Commit db677a3

Browse files
authored
feat(create-docusaurus): Newly initialized TS sites should use "strict: true" (#11696)
Co-authored-by: slorber <[email protected]>
1 parent e553c03 commit db677a3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/create-docusaurus/templates/classic-typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@docusaurus/module-type-aliases": "3.9.2",
2828
"@docusaurus/tsconfig": "3.9.2",
2929
"@docusaurus/types": "3.9.2",
30+
"@types/react": "^19.0.0",
3031
"typescript": "~5.6.2"
3132
},
3233
"browserslist": {
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
// This file is not used by "docusaurus start/build" commands.
2+
// It is here to improve your IDE experience (type-checking, autocompletion...),
3+
// and can also run the package.json "typecheck" script manually.
14
{
2-
// This file is not used in compilation. It is here just for a nice editor experience.
35
"extends": "@docusaurus/tsconfig",
46
"compilerOptions": {
5-
"baseUrl": "."
7+
"baseUrl": ".",
8+
"strict": true
69
},
710
"exclude": [".docusaurus", "build"]
811
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4612,7 +4612,7 @@
46124612
dependencies:
46134613
"@types/react" "*"
46144614

4615-
"@types/react@*", "@types/react@^19.2.10":
4615+
"@types/react@*", "@types/react@^19.0.0", "@types/react@^19.2.10":
46164616
version "19.2.10"
46174617
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.10.tgz#f3ea799e6b4cebad6dfd231c238fc9de7652e2d2"
46184618
integrity sha512-WPigyYuGhgZ/cTPRXB2EwUw+XvsRA3GqHlsP4qteqrnnjDrApbS7MxcGr/hke5iUoeB7E/gQtrs9I37zAJ0Vjw==

0 commit comments

Comments
 (0)