Skip to content

feat: add Oxlint linter integration#1148

Open
fsargent wants to merge 1 commit into
trunk-io:mainfrom
fsargent:oxlint-integration/add-linter
Open

feat: add Oxlint linter integration#1148
fsargent wants to merge 1 commit 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
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.

1 participant