Repository navigation
benchmarks(errors): turn on comparable stricter settings in every framework - #223
Merged
Merged
Conversation
…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
force-pushed
the
benchmarks/errors-stricter
branch
from
October 21, 2026 07:37
8416dfa to
ea784ae
Compare
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
undefined=StrictUndefinedvueCompilerOptions.strictTemplates,experimental.typedPagestypedRoutes, and the three TypeScript options Nuxt's generated tsconfig turns on:noUncheckedIndexedAccess,noImplicitOverride,verbatimModuleSyntaxextra='forbid'on its Pydantic models, so unknown input names stay rejected as with its default classesREACTPY_DEBUG_MODE=1, as already set in #221Citry, Django, Rusty, FastHTML and django-unicorn have no setting that qualifies; their notes say why. A few examples of what was left off:
string_if_invalidonly prints a marker.typescript.typeCheckreruns the same check later.Changed cells
Nine cells were predicted before the run. All nine changed, and nothing else did:
run --no-cache: 490 cases, about 24 minutes. Every clean app passed every stage and journey. Results move toresults/2026-10-21/; the README treatsresults/as latest-only, so the 2026-10-20 folder is removed (git history keeps it).With these settings, Nuxt reports 30 of its 44 mistakes before the app runs, against Citry's 25 of 47.
🤖 Generated with Claude Code