Skip to content

chore: adopt the shared toolchain and reformat - #3038

Merged
yannickmonney merged 5 commits into
mainfrom
chore/template-alignment
Aug 22, 2026
Merged

yannickmonney merged 5 commits into
mainfrom
chore/template-alignment

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

First of two PRs aligning tale with the new `tale-project/example-project` template standard (byte-identical lint/format configs across all org repos).

  • Toolchain bumps: oxfmt 0.44.0 → 0.64.0, oxlint 1.59.0 → 1.79.0 + oxlint-tsgolint 7.0.2001, turbo 2.9.14 → 2.10.11, commitlint 20.5.0 → 21.2.2.
  • Shared configs: root `.oxlintrc.json` / `.oxfmtrc.json` are now byte-identical copies of the template standard. oxfmt's renamed keys (`sortImports`, `sortTailwindcss`) land with the version bump; markdown/YAML leave formatter scope. The merged lint rule set adds the `oxc` + `promise` plugins and `import/no-cycle`.
  • Debt ledger: rules the 1.79 engine enforces that the codebase can't pay down in one change (React-Compiler family, `promise/always-return`, platform's a11y trio + 21 import cycles) are relaxed per-workspace in nested configs — never in the shared root.
  • Plop templates: scaffolded `.oxlintrc.json` stubs ship as `.hbs` so oxlint 1.79's nested-config discovery doesn't hard-fail on their post-generation `extends` target.
  • Fixes: ~20 hand fixes for the genuinely-new rules + the mechanical `oxlint --fix` assertion sweep + the repo-wide oxfmt 0.64 reformat.

Verification

`format:check`, `turbo lint` (type-aware), `turbo typecheck`, `turbo test`, `test:ui`, full opengrep scan (0 findings) — all green locally. Two pre-existing machine-local reds reproduce identically on clean main and are untouched: one `rest_machine_door` vitest case and the knip e2e-fixture list.

Part 2 (agent contract + standard CI workflow set) follows on top of this branch.

oxfmt 0.44.0 -> 0.64.0, oxlint 1.59.0 -> 1.79.0 (with its required
oxlint-tsgolint 7.0.2001 type-aware engine), turbo 2.9.14 -> 2.10.11 and
commitlint 20.5.0 -> 21.2.2, aligning every tale-project repository on one
toolchain so the shared lint and format configs can be byte-identical.
The root .oxlintrc.json and .oxfmtrc.json are now byte-identical copies of
the tale-project example-project standard: oxfmt's renamed sortImports /
sortTailwindcss keys with a generic ignore list (markdown and YAML leave
formatter scope), and a merged rule set that adds the oxc and promise
plugins plus import/no-cycle while keeping the jsx-a11y wall.

Rules the new engine enforces but the codebase cannot pay down in one
change land as explicit per-workspace relaxations in the nested configs
(React Compiler family, promise/always-return, the platform a11y trio and
its 21 import cycles) — the debt ledger lives in .agents/repo.md.
oxlint 1.79 discovers nested configs everywhere, so the .oxlintrc.json
files inside tools/plop/templates started hard-failing the whole run:
their extends target only exists after generation. They ship as .hbs now
(the add action already strips the suffix on scaffold), which keeps them
out of nested-config discovery without changing what generators emit.
The sites the new rules flag for real: merged template-literal concats,
then() callbacks that now return explicitly, single-use type parameters
inlined in the i18n useT wrappers and useResizeObserver, assertions the
sharper engine proves redundant in sandbox and the ui markdown layer, and
a comment-only convex module deleted outright. The two SSO/dashboard
iframes and the connect-middleware next() call keep their behaviour and
document why with inline disables; data-table's six ColumnMeta assertions
stay because the unaugmented TanStack generic misleads the engine there.
…xfmt 0.64

Mechanical output of the bumped toolchain, two tools in one sweep:
oxlint --type-aware --fix removes the type assertions the tsgolint 7
engine proves unnecessary across the platform workspace, and bun run
format applies oxfmt 0.64 (tailwind class sorting inside cn/cva, import
sorting, package.json key sorting). No hand-written changes ride along.
@yannickmonney
yannickmonney merged commit 0a1fc82 into main Aug 22, 2026
61 checks passed
@yannickmonney
yannickmonney deleted the chore/template-alignment branch August 22, 2026 10:13
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