Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"useUnknownInCatchVariables": true,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Redundant flag — already covered by strict: true

useUnknownInCatchVariables has been included as part of the TypeScript strict mode since TypeScript 4.4. Because line 8 already has "strict": true, this flag is already implicitly active.

All other explicit options in this file (exactOptionalPropertyTypes, noUncheckedIndexedAccess, noUnusedLocals, noUnusedParameters, noFallthroughCasesInSwitch, noImplicitOverride, noImplicitReturns) are not covered by strict: true and therefore warrant explicit listing. This one is the exception.

Adding it explicitly is harmless and won't change behaviour, but it is inconsistent with the pattern of the file and could mislead future maintainers into thinking it isn't already covered by strict.

Suggested change
"useUnknownInCatchVariables": true,

"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"paths": {
Expand Down
Loading