Improve TypeScript Configuration by Enabling Stricter Compiler Options and Code Quality Checks#39485
Improve TypeScript Configuration by Enabling Stricter Compiler Options and Code Quality Checks#39485NirajDN wants to merge 2 commits intogithub:mainfrom
Conversation
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. This pull request contains code changes, so we will not generate a table of review links. 🤖 This comment is automatically generated. |
|
@NirajDN I think our "you can't alter that" bot is only set to run on things from our content folder, because that's generally the only place contributors pull from. But, basically, if it's not in the content folder, we can't accept changes to it. I'm afraid this is another one that we can't accept changes to. |
|
@Sharra-writes No worries at all ,totally understand! 😊 Thanks again for your time and support! — @NirajDN |
|
@NirajDN Our help wanted label is always a good place to start. I don't know your exact expertise, but a lot of the more technical issues just never get a resolution. Most of them are about Actions, but here's one that has to do with the REST API if that's more your thing. Just keep in mind that it's the documentation that's open source, not the entire docs site infrastructure. |
Why:
This PR improves the existing
tsconfig.jsonto enable stricter TypeScript compiler options and code quality checks. These changes help catch potential errors earlier and maintain cleaner, safer code across the codebase.Closes: N/A (no existing issue, but can create one if needed)
What's being changed (if available, include any code snippets, screenshots, or gifs):
noImplicitThisandstrictNullChecksfor improved type safety.noUnusedLocalsandnoUnusedParametersto catch unused variables and parameters.These changes only affect static type checking and do not change runtime behavior.
Check off the following: