Skip to content

Convert clients/js-legacy to oxlint and oxfmt - #369

Merged
joncinque merged 1 commit into
solana-program:mainfrom
clankmaxxing-clod:convert-js-legacy-to-oxlint-oxfmt
Aug 28, 2026
Merged

Convert clients/js-legacy to oxlint and oxfmt#369
joncinque merged 1 commit into
solana-program:mainfrom
clankmaxxing-clod:convert-js-legacy-to-oxlint-oxfmt

Conversation

@clankmaxxing-clod

Copy link
Copy Markdown
Contributor

Replaces ESLint + Prettier with oxlint and oxfmt for the clients/js-legacy package, mirroring solana-program/token-group#115, solana-program/token-metadata#120, solana-program/libraries#200, and solana-program/memo#415.

Changes

  • package.json: dropped eslint, prettier, @eslint/js, typescript-eslint, eslint-config-prettier, eslint-plugin-prettier, eslint-plugin-require-extensions, and @solana/prettier-config-solana; added oxlint and oxfmt. Scripts now run the Oxc tools:
    • lintoxlint --max-warnings 0
    • lint:fixoxlint --fix
    • formatoxfmt --check src test
    • format:fixoxfmt --write src test
    • removed the "prettier" config key.
  • .oxlintrc.json (new) mirrors the old ESLint config: correctness category as errors; consistent-type-imports enforced; ban-ts-comment / no-explicit-any / no-unused-vars / no-empty-object-type disabled; import/extensions (import plugin) replaces eslint-plugin-require-extensions and stays disabled for test/examples.
  • .oxfmtrc.json (new) migrated from @solana/prettier-config-solana (printWidth 120, tabWidth 4, single quotes, semicolons, arrowParens: avoid).
  • Removed .eslintrc and .eslintignore.
  • Updated pnpm-lock.yaml.

Notes

  • CI invokes pnpm lint / pnpm format through the repo Makefile, so no workflow files needed changing.
  • Existing source is already oxfmt-clean and oxlint-clean — no source reformatting in this PR.

Verification

pnpm lint, pnpm format, pnpm build, and pnpm test:exports all succeed. (The mocha suite needs a local solana-test-validator and was not run in this environment; it is unaffected by the tooling change.)

🤖 Generated with Claude Code

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
joncinque merged commit a2aecc5 into solana-program:main Aug 28, 2026
22 checks passed
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.

2 participants