Convert clients/js-legacy to oxlint and oxfmt - #369
Merged
joncinque merged 1 commit intoAug 28, 2026
Merged
Conversation
Replaces ESLint + Prettier with oxlint and oxfmt for the clients/js-legacy package. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
joncinque
approved these changes
Aug 28, 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.
Replaces ESLint + Prettier with oxlint and oxfmt for the
clients/js-legacypackage, mirroring solana-program/token-group#115, solana-program/token-metadata#120, solana-program/libraries#200, and solana-program/memo#415.Changes
package.json: droppedeslint,prettier,@eslint/js,typescript-eslint,eslint-config-prettier,eslint-plugin-prettier,eslint-plugin-require-extensions, and@solana/prettier-config-solana; addedoxlintandoxfmt. Scripts now run the Oxc tools:lint→oxlint --max-warnings 0lint:fix→oxlint --fixformat→oxfmt --check src testformat:fix→oxfmt --write src test"prettier"config key..oxlintrc.json(new) mirrors the old ESLint config:correctnesscategory as errors;consistent-type-importsenforced;ban-ts-comment/no-explicit-any/no-unused-vars/no-empty-object-typedisabled;import/extensions(import plugin) replaceseslint-plugin-require-extensionsand stays disabled fortest/examples..oxfmtrc.json(new) migrated from@solana/prettier-config-solana(printWidth 120, tabWidth 4, single quotes, semicolons,arrowParens: avoid)..eslintrcand.eslintignore.pnpm-lock.yaml.Notes
pnpm lint/pnpm formatthrough the repoMakefile, so no workflow files needed changing.oxfmt-clean andoxlint-clean — no source reformatting in this PR.Verification
pnpm lint,pnpm format,pnpm build, andpnpm test:exportsall succeed. (Themochasuite needs a localsolana-test-validatorand was not run in this environment; it is unaffected by the tooling change.)🤖 Generated with Claude Code