Skip to content

Comments

chore(typescript): add @tsconfig/strictest#1679

Merged
yusukebe merged 1 commit intohonojs:mainfrom
BarryThePenguin:chore/typescript/tsconfig-strictest
Jan 6, 2026
Merged

chore(typescript): add @tsconfig/strictest#1679
yusukebe merged 1 commit intohonojs:mainfrom
BarryThePenguin:chore/typescript/tsconfig-strictest

Conversation

@BarryThePenguin
Copy link
Contributor

  • Adds @tsconfig/strictest to tsconfig.base.json
  • Disables compilerOptions for each package that isn't compatible with @tsconfig/strictest

@changeset-bot
Copy link

changeset-bot bot commented Jan 4, 2026

⚠️ No Changeset found

Latest commit: 76d9bd5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.24%. Comparing base (49db969) to head (76d9bd5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1679   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files         111      111           
  Lines        3661     3661           
  Branches      956      956           
=======================================
  Hits         3377     3377           
  Misses        250      250           
  Partials       34       34           
Flag Coverage Δ
ajv-validator 100.00% <ø> (ø)
arktype-validator 93.54% <ø> (ø)
auth-js 98.57% <ø> (ø)
casbin 86.48% <ø> (ø)
class-validator 95.00% <ø> (ø)
clerk-auth 88.46% <ø> (ø)
cloudflare-access 100.00% <ø> (ø)
conform-validator 96.15% <ø> (ø)
effect-validator 100.00% <ø> (ø)
event-emitter 100.00% <ø> (ø)
firebase-auth 96.61% <ø> (ø)
graphql-server 92.15% <ø> (ø)
mcp 90.60% <ø> (ø)
node-ws 80.68% <ø> (ø)
oauth-providers 92.48% <ø> (ø)
oidc-auth 96.44% <ø> (ø)
otel 93.65% <ø> (ø)
prometheus 90.24% <ø> (ø)
session 98.91% <ø> (ø)
ssg-plugins-essential 98.16% <ø> (ø)
standard-validator 96.10% <ø> (ø)
stytch-auth 100.00% <ø> (ø)
swagger-ui 95.00% <ø> (ø)
typebox-validator 100.00% <ø> (ø)
typia-validator 87.75% <ø> (ø)
ua-blocker 90.00% <ø> (ø)
valibot-validator 84.61% <ø> (ø)
zod-openapi 93.79% <ø> (ø)
zod-validator 91.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BarryThePenguin BarryThePenguin force-pushed the chore/typescript/tsconfig-strictest branch 2 times, most recently from 6f312c2 to bad8dbf Compare January 4, 2026 02:36
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noUnusedLocals": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests often use type assertions like..

type verify = Expect<Equal<Expected, Actual>>

..which leaves a lot of unused declarations laying around.

One day I'd like to replace these with expectTypeOf assertions

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see. I also tried to replace these with Vitest's, but gave up 🙃

Comment on lines -15 to -18
"strict": true,
"skipLibCheck": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Safe to remove as these are the default values provided by @tsconfig/strictest

{ "path": "packages/session" },
{ "path": "packages/ssg-plugins-essential" },
{ "path": "packages/standard-validator" },
{ "path": "packages/stytch-auth"},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this was missing 👀

@BarryThePenguin BarryThePenguin force-pushed the chore/typescript/tsconfig-strictest branch from bad8dbf to 43d7790 Compare January 5, 2026 08:38
@BarryThePenguin BarryThePenguin force-pushed the chore/typescript/tsconfig-strictest branch from 4fe217a to 76d9bd5 Compare January 5, 2026 09:59
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noUnusedLocals": false,
Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see. I also tried to replace these with Vitest's, but gave up 🙃

@yusukebe
Copy link
Member

yusukebe commented Jan 6, 2026

@BarryThePenguin

Thank you for editing a bunch of files. Thanks!

@yusukebe yusukebe merged commit 1f8372e into honojs:main Jan 6, 2026
121 of 122 checks passed
@BarryThePenguin BarryThePenguin deleted the chore/typescript/tsconfig-strictest branch January 6, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants