Skip to content

benchmarks(errors): turn on comparable stricter settings in every framework - #223

Merged
JuroOravec merged 7 commits into
mainfrom
benchmarks/errors-stricter
Oct 21, 2026
Merged

JuroOravec merged 7 commits into
mainfrom
benchmarks/errors-stricter

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Applies the "stricter settings" decision from #158 to all ten frameworks and publishes the run. Stacked on #222; merge that first.

The rule: when a framework has a setting that turns on a stricter check, and other frameworks here have the same kind of check, the benchmark turns it on in that framework's normal setup. Each framework's notes record every setting changed from its defaults, and every setting considered but left off, with the reason. The design doc states how the rule is applied.

Settings turned on

Framework Setting
Jinja undefined=StrictUndefined
Nuxt vueCompilerOptions.strictTemplates, experimental.typedPages
Next.js typedRoutes, and the three TypeScript options Nuxt's generated tsconfig turns on: noUncheckedIndexedAccess, noImplicitOverride, verbatimModuleSyntax
django-components extra='forbid' on its Pydantic models, so unknown input names stay rejected as with its default classes
ReactPy REACTPY_DEBUG_MODE=1, as already set in #221

Citry, Django, Rusty, FastHTML and django-unicorn have no setting that qualifies; their notes say why. A few examples of what was left off:

  • pyright strict mode flags correct code that follows the frameworks' own docs.
  • Django's string_if_invalid only prints a marker.
  • Nuxt's typescript.typeCheck reruns the same check later.

Changed cells

Nine cells were predicted before the run. All nine changed, and nothing else did:

  • Jinja: m04, m08 and m36 go from missed to runtime error.
  • Nuxt:
    • m01, m11 and m21 go from runtime error to the editor.
    • m10 and m29 go from missed to the editor.
  • Next.js: m45 (a link to a missing route) goes from runtime error to the editor.

run --no-cache: 490 cases, about 24 minutes. Every clean app passed every stage and journey. Results move to results/2026-10-21/; the README treats results/ as latest-only, so the 2026-10-20 folder is removed (git history keeps it).

Citry Django Rusty Jinja django-unicorn django-components FastHTML ReactPy Nuxt Next.js
Static error 24 3 3 2 7 3 17 19 30 35
Static warning 1 0 0 0 0 0 0 0 0 0
Runtime error 7 12 14 23 10 17 9 10 3 3
Runtime warning 0 0 0 0 0 0 0 0 1 0
N/A or prevented 2 9 11 10 8 7 13 7 5 6
Missed 15 25 21 14 24 22 10 13 10 5

With these settings, Nuxt reports 30 of its 44 mistakes before the app runs, against Citry's 25 of 47.

🤖 Generated with Claude Code

@JuroOravec
JuroOravec added this pull request to stack #219 October 21, 2026 07:35
Base automatically changed from benchmarks/errors-fw-unicorn to main October 21, 2026 07:37
JuroOravec and others added 5 commits October 21, 2026 09:37
…or benchmark

Applies the 2026-10-20 decision on stricter settings to every framework:
when a framework has a setting that turns on a stricter check, and other
frameworks here have the same kind of check, the clean app turns it on.

- Jinja: `undefined=StrictUndefined`, through Starlette's `env=` argument.
- Nuxt: `vueCompilerOptions.strictTemplates` (unknown components,
  elements, attributes, directives and component events in vue-tsc) and
  `experimental.typedPages`.
- Next.js: `typedRoutes`.
- django-components: `extra='forbid'` on its Pydantic models, so unknown
  names stay rejected as django-components' default named tuples reject
  them.
- Citry, Django, Django Rusty Templates and FastHTML have no such setting;
  their notes say what was considered.

No clean app needed a change. Each framework's notes name the settings
changed and those considered and left off, with the reason. The
django-components notes no longer say that Citry checks input types when
a component renders: Citry 0.6.0 checks them before the app runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Next.js also turns on `noUncheckedIndexedAccess` and
  `noImplicitOverride`, which the tsconfig Nuxt generates turns on; no
  case depends on either.
- Every framework's notes list the settings considered and left off,
  with the reason: Citry's ty rules (Citry keeps ty's findings only in
  template expressions, where its own check already reports an unknown
  name), TypeScript `strict` in Citry's check, Pydantic `Kwargs` and
  `mode`; Django's template logging and `checkJs`; @nuxt/eslint's
  type-aware rules (most report kinds of mistake no other framework
  here checks); Next.js's `typedEnv`, `strictRouteTypes`, `taint`,
  `verbatimModuleSyntax` and unset jsx-a11y rules.
- The design doc states when a setting is left off, how an option that
  turns on many checks is judged, and that each linter keeps its
  framework's preset. The README lists the settings that are on and why
  pyright and ruff keep their modes; the plan marks the stricter-settings
  item done; the docs page's "How we measured" lists them.

The README notes on m36 and m45 and the docs page describe the run that
the publish commit adds; its counts and data file land with that run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ngo-unicorn apps

ReactPy's notes give the rule's reason for its debug mode: `next dev` and
`nuxt dev` run React's and Vue's development checks of the same kind.
django-unicorn's notes say why it changes nothing: none of its settings
turns on a check, and its HTML check follows Django's DEBUG, which is on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Next.js also turns on `verbatimModuleSyntax`, the third TypeScript
  option beyond `strict` that the tsconfig Nuxt generates turns on. The
  clean app type-checks and builds unchanged, and no case depends on it.
- The notes and README say which names Citry checks where they compare
  it with vue-tsc's strict template check, list django-unicorn among the
  apps that check links when the page renders, and give the reason
  pyright keeps its standard mode.
- The docs page names Nuxt's component events and says Citry, Django,
  Rusty, FastHTML and django-unicorn keep their defaults because none of
  their settings adds a kind of check the others make.
- Paragraphs merged during the rebase are rewrapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ettings

Replaces results/2026-10-20/ with results/2026-10-21/, a full run of
the 49 mistakes in the ten frameworks (490 cases, `--no-cache`, about
24 minutes) taken at commit abb4f5e with no uncommitted benchmark
changes. No clean app reported a problem in any stage or journey.

Nine cells changed from the published run, each as predicted before
the run, and each from a setting turned on in this PR:
- Jinja m04, m08, m36: missed -> runtime error (StrictUndefined: a
  macro called without `title`, `owner.nmae` and a misspelled slot-data
  name now raise when the page renders).
- Nuxt m01, m11, m21: runtime error -> editor; m10, m29: missed ->
  editor (vue-tsc `strictTemplates`: unknown component, element,
  directive, attribute and component event).
- Next.js m45: runtime error -> editor (`typedRoutes`).

Before the app runs: Next.js 35 of 43, Nuxt 30 of 44, Citry 25 of 47.
The docs data file follows the run; the docs page and README already
describe it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec force-pushed the benchmarks/errors-stricter branch from 8416dfa to ea784ae Compare October 21, 2026 07:37
JuroOravec and others added 2 commits October 21, 2026 09:38
main matches the merged #222, which this branch already contains, so the
files are unchanged.
GitHub rebased this branch when #222 merged. The run used abb4f5e,
whose files are identical to 8bd6645 on this branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec merged commit a0fc32a into main Oct 21, 2026
4 checks passed
@JuroOravec
JuroOravec deleted the benchmarks/errors-stricter branch October 21, 2026 07:42
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.

1 participant