Skip to content

chore(lint): switch to Oxlint and oxfmt - #77

Merged
Bugs5382 merged 2 commits into
mainfrom
chore/75-oxlint
Nov 4, 2026
Merged

Bugs5382 merged 2 commits into
mainfrom
chore/75-oxlint

Conversation

@Bugs5382

@Bugs5382 Bugs5382 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

What and why

I'm switching the repo's linting from ESLint to Oxlint, with oxfmt for formatting, using @bugs5382/node-oxlint-config. The old shared ESLint config was removed from npm, so a clean install no longer works. This is lint and formatting setup only: no lint code fixes, and CI is untouched.

  • Removed @the-rabbit-hole/eslint-config, eslint and globals, and eslint.config.mjs.
  • Added @bugs5382/node-oxlint-config ^1.0.1, oxlint and oxfmt as devDependencies, with .oxlintrc.json and oxfmt.config.ts.
  • lint and lint:fix now call Oxlint (the workspace lint:npm step stays). New format and format:check scripts were added; no CI step or hook runs format:check.
  • Docs lines that named ESLint now name Oxlint or npm run format.
  • The old config's relaxations are carried over: typescript/no-explicit-any, func-style, unicorn/number-literal-case, unicorn/prefer-event-target, unicorn/filename-case, and the unicorn-js prevent-abbreviations, better-dom-traversing and consistent-compound-words, plus the underscore-prefix unused-variable pattern and the script, docker and test overrides.
  • Rules turned off so npm run lint passes on untouched source (hits): import/no-default-export (7), unicorn/prefer-module (5), unicorn/prefer-string-replace-all (2), unicorn-js/prefer-https (1), unicorn-js/prefer-includes-over-repeated-comparisons (1).
  • I ran oxfmt once: formatting only, 16 files rewritten (Markdown, one TypeScript file and two tsconfig.json). CLAUDE.md, .github/**, .claude/** and generated files stay ignored.

Refs #76 for turning the rules back on.

Closes #75

Verification

  • Lint clean
  • Tests pass
  • Build succeeds
  • Documentation updated (if behavior or API changed)

How this was verified

After the format run: npm run lint exits 0, oxfmt --check is clean, tsc --noEmit passes, npm run build succeeds and npm test passes (585 passed, 2 skipped).


Closing summary: the lint setup moved to Oxlint and oxfmt with no lint code fixes; the rules that fire on existing code are off and tracked in #76.

@Bugs5382 Bugs5382 added this to the vNext milestone Nov 4, 2026
@Bugs5382 Bugs5382 added the dependencies Dependency updates. label Nov 4, 2026
@Bugs5382 Bugs5382 linked an issue Nov 4, 2026 that may be closed by this pull request
6 tasks
@Bugs5382 Bugs5382 self-assigned this Nov 4, 2026
@Bugs5382
Bugs5382 marked this pull request as ready for review November 4, 2026 22:05
@github-actions github-actions Bot added the skip-changelog Excluded from release notes (chore/ci/test/style). label Nov 4, 2026
@Bugs5382
Bugs5382 merged commit fae3cf5 into main Nov 4, 2026
10 checks passed
@Bugs5382
Bugs5382 deleted the chore/75-oxlint branch November 4, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates. skip-changelog Excluded from release notes (chore/ci/test/style).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(lint): switch to Oxlint and oxfmt

1 participant