Skip to content

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

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#415
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, and solana-program/libraries#200.

Changes

  • package.json: dropped eslint, prettier, @typescript-eslint/*, 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.
  • .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:unit (3 passing) all succeed. (The test:e2e suite needs a local 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 9538bef into solana-program:main Aug 28, 2026
28 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