Skip to content

feat: add Oxlint linter integration - #1148

Merged
trunk-io[bot] merged 2 commits into
trunk-io:mainfrom
fsargent:oxlint-integration/add-linter
Aug 1, 2026
Merged

feat: add Oxlint linter integration#1148
trunk-io[bot] merged 2 commits into
trunk-io:mainfrom
fsargent:oxlint-integration/add-linter

Conversation

@fsargent

Copy link
Copy Markdown
Contributor

What?

Add an Oxlint integration for JavaScript, TypeScript, JSX, and TSX:

  • Run Oxlint with SARIF output for diagnostics.
  • Run Oxfmt as the formatter.
  • Recognize the documented Oxlint and Oxfmt configuration files.
  • Track configuration inputs that affect lint and format results.
  • Add lint and format integration tests with pinned-version snapshots.
  • Document Oxlint in the supported-linters list.

Why?

Oxlint and Oxfmt provide fast, dedicated linting and formatting with strong ESLint and Prettier compatibility. This integration installs both tools hermetically and follows their current configuration and CLI conventions.

Validation

  • npm test -- linters/oxlint
  • PLUGINS_TEST_LINTER_VERSION=KnownGoodVersion npm test -- linters/oxlint
  • npm test -- tests/repo_tests/config_check.test.ts --runInBand
  • npm test -- tests/repo_tests (Graphite submit hook)
  • trunk check ... on all changed source files
  • Snyk Code scan: no findings

@fsargent
fsargent force-pushed the oxlint-integration/add-linter branch from 1e75931 to 84af11e Compare July 16, 2026 13:24

@EliSchleifer EliSchleifer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGM

@trunk-io

trunk-io Bot commented Aug 1, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@trunk-io
trunk-io Bot merged commit 16a6557 into trunk-io:main Aug 1, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants