API Reference OXC v#0.18.0

Copy Markdown View Source

Modules

OXC

Elixir bindings for the OXC JavaScript toolchain.

Composable JavaScript bundling pipeline.

Bundle entry configuration.

A generated bundle output chunk or asset.

Result of a bundle run.

Errors and lint findings as Elixir Code.diagnostic/1 maps.

Raised by bang functions. errors holds OXC.Diagnostic.t/0 maps and the message lists them as file:line:column: message.

Format JavaScript/TypeScript source code with oxfmt.

Lint JavaScript/TypeScript source with oxlint's built-in rules and optional custom Elixir rules.

Behaviour for custom lint rules in Elixir.

Runs type-aware TypeScript lint rules through tsgolint headless mode.

Files and rules submitted to tsgolint.

tsgolint diagnostic frame. :rule findings always carry a rule, range, and file.

tsgolint error frame.

tsgolint text edit.

tsgolint secondary location.

tsgolint headless payload.

tsgolint byte range.

Rule entry submitted to tsgolint.

tsgolint diagnostic message.

tsgolint alternative fix.