Repository navigation
Conversation
Same oxlint/oxfmt setup as CashScript/cashscript#480 and the playground. - add oxlint and oxfmt, pinned to exact versions (oxfmt is pre-1.0) - .oxlintrc.json uses oxlint's default rules, with no-unused-vars configured like the cashscript repo - .oxfmtrc.json uses the same options as the cashscript repo (printWidth 125 instead of prettier's 120 here) - `lint` now runs oxlint (it used to run `prettier --write`); add `format` and `format:check` - TypeScript 5.8 → 7.0. TypeScript 6 made `strict` the default, which enables strictPropertyInitialization; mark the two CompletionProvider fields that are assigned at the start of provideCompletionItems as definitely assigned Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Output of `pnpm format` and nothing else: package.json key sorting and re-wrapping at the wider print width. The minified bundles are byte-identical before and after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 2, 2026
rkalis
approved these changes
Dec 3, 2026
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.
Summary
Replaces prettier with oxfmt, adds oxlint, and upgrades TypeScript to 7. It uses the same oxfmt options as CashScript/cashscript#480 and CashScript/cashscript-playground#54. oxlint runs with its default correctness rules (#480 instead turns those off and lists 13 rules explicitly), with
no-unused-varsusing #480's options as a warning. The tools are pinned one patch version newer than #480, matching the playground. Stacked on #25; review and merge that first.Changes
yarn lintranprettier --write).pnpm lintnow runs oxlint with its default rules, withno-unused-varsconfigured like the cashscript repo (_-prefixed arguments allowed, caught errors ignored). It reports 8 warnings and no errors: unusedtoken/contextparameters in the VS Code provider implementations, an unusedfsimport inextension.ts, an unusedcapabilitiesvariable inserver.ts, and the emptysrc/tests/index.ts(removed in the follow-up PR).printWidth: 125(prettier used 120 here), single quotes, trailing commas.pnpm format/pnpm format:checkadded;.prettierrcand.prettierignoreremoved.strictthe default, which turns onstrictPropertyInitialization. That flagged two fields inCashscriptCompletionProviderthat are assigned at the start ofprovideCompletionItemsbefore they're read; they're now marked as definitely assigned (doc!,pos!). No other type errors.Commits
pnpm formatand nothing else. Because oxfmt's output matches prettier's apart from the wider print width, this only touches 4 source files (re-wrapped at the wider print width) andpackage.json. There's no.git-blame-ignore-revsentry, since the reformat is this small; that also means any merge method works.Notes for review
package.jsonkeys by default, including thekeywordsandcategoriesarrays. Only top-level keys and those two arrays are sorted (contributes,filesandcontributorsare unchanged). In the.vsixthis only reorders the<Tags>and<Categories>strings, which has no effect in VS Code or on the Marketplace.typescript@7package no longer shipstsserver, so VS Code's "Use Workspace Version" won't work; editors use their bundled TypeScript or the TypeScript native-preview extension. Bundling is unaffected, because rolldown strips types without type-checking.Testing
pnpm typecheck(TypeScript 7),pnpm build,pnpm lintandpnpm format:checkpassrolldown -c --environment MINIFY:true) are byte-identical before and after the reformat commit.cashfile inexamples/: diagnostics identical tomain;extension.jsactivates with a stubbedvscodemodule🤖 Generated with Claude Code